angular/packages/platform-browser-dynamic
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
..
src refactor(ivy): prefix all generated instructions (#29692) 2019-04-10 12:11:40 -07:00
test test(platform-browser-dynamic): avoid swallowing error in CachedResourceLoader test (#30515) 2019-05-16 20:14:04 -07:00
testing refactor: move DOCUMENT imports from platform-browser to common (#29237) 2019-03-14 16:01:57 -04:00
BUILD.bazel build: remove now redundant bundle_dts = True attribute (#29128) 2019-03-07 10:47:20 -08:00
index.ts build: publish tree of files rather than FESMs (#18541) 2017-08-31 15:34:50 -07:00
package.json feat: update the package output of build.sh to APF v6 (#22808) 2018-03-18 09:33:51 -07:00
public_api.ts build: publish tree of files rather than FESMs (#18541) 2017-08-31 15:34:50 -07:00
tsconfig-build.json build: remove references to tsc-wrapped (#19298) 2017-09-21 13:55:52 -07:00