angular-docs-cn/packages/platform-browser-dynamic/test
George Kalpakas 848e53efd0 test(platform-browser-dynamic): avoid swallowing error in `CachedResourceLoader` test (#30515)
Previously, in order to assert that the promise was not resolved, an
error was thrown when the promise was resolved successfully. At the
same, `.catch()` was used to silence the (expected) promise rejection.
However, the chained `.catch()` handler would also catch (and swallow)
the error thrown on resolving the promise, making the test pass, even if
the promise was not rejected.

This commit fixes it by ensuring that the error thrown on resolving the
promise is not caught by the rejection handler.

PR Close #30515
2019-05-16 20:14:04 -07:00
..
resource_loader test(platform-browser-dynamic): avoid swallowing error in `CachedResourceLoader` test (#30515) 2019-05-16 20:14:04 -07:00
BUILD.bazel test(ivy): turn on platform-browser-dynamic tests on CI (#27940) 2019-01-05 17:48:11 -08:00
metadata_overrider_spec.ts build: update to rules_typescript 0.25.1 (#28625) 2019-02-21 07:46:21 -08:00
testing_public_browser_spec.ts feat(ivy): avoid unnecessary recompilations in TestBed (#29294) 2019-03-19 01:11:16 -04:00