angular-docs-cn/packages/platform-browser-dynamic/test/resource_loader
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_cache_setter.ts
resource_loader_cache_spec.ts test(platform-browser-dynamic): avoid swallowing error in `CachedResourceLoader` test (#30515) 2019-05-16 20:14:04 -07:00
resource_loader_impl_spec.ts test(ivy): turn on platform-browser-dynamic tests on CI (#27940) 2019-01-05 17:48:11 -08:00