angular-docs-cn/packages/router/test
Kristiyan Kostadinov 07c1ddc487 fix(router): error if module is destroyed before location is initialized (#42560)
This is something I ran into while working on a fix for the `TestBed` module teardown behavior for #18831. In the `RouterInitializer.appInitializer` we have a callback to the `LOCATION_INITIALIZED` which has to do some DI lookups. The problem is that if the module is destroyed before the location promise resolves, the `Injector.get` calls will fail. This is unlikely to happen in a real app, but it'll show up in unit tests once the test module teardown behavior is fixed.

PR Close #42560
2021-06-17 18:11:53 +00:00
..
aot_ngsummary_test build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
operators fix(router): update type castings for JSON.parse usage (#40710) 2021-02-09 10:48:43 -08:00
utils build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
BUILD.bazel test(router): fix router test failing on IE (#36742) 2020-04-23 12:13:27 -04:00
apply_redirects.spec.ts fix(router): fix load interaction of navigation and preload strategies (#40389) 2021-02-16 11:28:50 -08:00
bootstrap.spec.ts fix(router): handle new navigations from a NavigationEnd event (#41262) 2021-04-08 10:23:04 -07:00
config.spec.ts refactor(router): Produce error message when canActivate is used with redirectTo (#40067) 2021-01-05 10:09:27 -08:00
create_router_state.spec.ts fix(router): Only retrieve stored route when reuse strategy indicates it should reattach (#30263) 2021-04-15 11:32:59 -07:00
create_url_tree.spec.ts fix(router): fix `serializeQueryParams` logic (#42481) 2021-06-08 10:43:00 -07:00
helpers.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
integration.spec.ts fix(router): error if module is destroyed before location is initialized (#42560) 2021-06-17 18:11:53 +00:00
recognize.spec.ts fix(router): recursively merge empty path matches (#41584) 2021-04-14 15:47:07 -07:00
regression_integration.spec.ts test(router): add Router regression test for hash location strategy (#40409) 2021-04-14 18:48:26 -07:00
router.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
router_preloader.spec.ts fix(router): fix load interaction of navigation and preload strategies (#40389) 2021-02-16 11:28:50 -08:00
router_scroller.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
router_state.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
shared.spec.ts fix(router): fix error when calling ParamMap.get function (#31599) 2020-06-25 11:57:24 -07:00
spy_ng_module_factory_loader.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
url_serializer.spec.ts fix(router): fragment can be null (#37336) 2021-03-22 10:02:39 -07:00
url_tree.spec.ts feat(router): Add more find-tuned control in `routerLinkActiveOptions` (#40303) 2021-02-24 15:32:05 -08:00