angular/packages/common
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
..
http refactor(common): remove deprecated XhrFactory export from http entrypoint (#49251) 2023-03-01 12:33:03 -08:00
locales build: make devmode a noop and ensure it never runs (#48521) 2022-12-19 19:50:45 +00:00
src refactor(common): remove BrowserPlatformLocation from private exports. (#49301) 2023-03-03 16:39:54 +00:00
test test(common): update async pipe tests to fix test errors (#49433) 2023-03-15 17:19:37 -07:00
testing docs(common): mark lifecycle methods as nodoc (#49416) 2023-03-14 09:41:35 -07:00
upgrade refactor(common): Use isPromise from @angular/core (#49210) 2023-02-27 10:03:20 -08:00
BUILD.bazel refactor: remove Angular Compatibility Compiler (ngcc) (#49101) 2023-02-16 16:01:17 -08:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json refactor(core): remove Node.js v14 support (#49255) 2023-02-28 11:00:25 -08:00
PACKAGE.md docs: add api doc to sub-packages (#33801) 2019-11-20 14:48:50 -08:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00