angular/packages/common/test
Alan Agius 67743340a7 test(common): update async pipe tests to fix test errors (#49433)
The below error is displayed during some tests

```js
ERROR: 'Unhandled Promise rejection:', 'Cannot read properties of null (reading 'markForCheck')', '; Zone:', 'ProxyZone', '; Task:', 'Promise.then', '; Value:', TypeError: Cannot read properties of null (reading 'markForCheck')
TypeError: Cannot read properties of null (reading 'markForCheck')
    at AsyncPipe2._updateLatestValue (http://angular-ci.local:9876/base/dist/legacy-test-bundle.spec.js?49174f830d8743d5c8a9551b77550b859b934291:51947:19)
```

This is caused by the fact that `ref` in `AsyncPipe` is initialized with a value of `null` which causes `_updateLatestValue` to fail since it is not expected to be `null`.

This change ensures that a `ref` is always provided and that all subscriptions are disposed off after each test.

PR Close #49433
2023-03-15 17:19:37 -07:00
..
directives feat(common): Add loaderParams attribute to NgOptimizedImage (#48907) 2023-02-06 10:10:44 -08:00
i18n build(common): update CLDR to version 41 (#45714) 2022-04-29 12:20:08 -04:00
image_loaders refactor(common): decouple preconnect checks from image loaders (#47565) 2022-09-29 16:39:35 -07:00
location fix(common): make Location.normalize() return the correct path when the base path contains characters that interfere with regex syntax. (#49181) 2023-02-27 10:02:33 -08:00
pipes test(common): update async pipe tests to fix test errors (#49433) 2023-03-15 17:19:37 -07:00
BUILD.bazel refactor: update packages/common tests to work with ESM pipeline (#48521) 2022-12-19 19:50:42 +00:00
cookie_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
viewport_scroller_spec.ts refactor: remove unnecessary test support check utilities (#47543) 2023-01-24 21:06:09 +00:00