angular-cn/packages/common/test
Andrea Canciani 4744c229db fix(common): correct typing and implementation of `SlicePipe` (#37447)
Even in the overloads, state that it can accept `null` and
`undefined`, in order to ensure easy composition with `async`.

Additionally, change the implementation to return `null` on an
`undefined` input, for consistency with other pipes.

BREAKING CHANGE:
The `slice` pipe now returns `null` for the `undefined` input value,
which is consistent with the behavior of most pipes. If you rely on
`undefined` being the result in that case, you now need to check for it
explicitly.

PR Close #37447
2020-09-28 12:23:33 -04:00
..
directives feat(core): update reference and doc to change `async` to `waitAsync`. (#37583) 2020-08-03 12:54:13 -07:00
i18n feat(common): Add ISO week-numbering year formats support to formatDate (#38828) 2020-09-21 12:24:43 -07:00
location test(common): prefer TestBed.inject over inject (#37459) 2020-06-09 08:26:34 -07:00
pipes fix(common): correct typing and implementation of `SlicePipe` (#37447) 2020-09-28 12:23:33 -04:00
BUILD.bazel test: setup circular dependency tests for all entry points (#34774) 2020-01-23 11:36:40 -08:00
cookie_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
spies.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
viewport_scroller_spec.ts fix(common): Allow scrolling when browser supports scrollTo (#38468) 2020-08-14 11:41:22 -07:00