angular/packages/router/test
Andrew Kushnir c0c7efaf7c feat(common): add provideLocationMocks() function to provide Location mocks (#47674)
This commit adds the `provideLocationMocks()` function that returns mocks for the `Location` and `LocationStrategy` classes. This function can be used in tests to configure an environment where it's possible to fire simulated location events (helpful when testing Router configuration).

PR Close #47674
2022-10-10 19:42:11 +00:00
..
directives feat(router): make RouterOutlet name an Input so it can be set dynamically (#46569) 2022-10-04 07:57:25 -07:00
operators feat(router): allow guards and resolvers to be plain functions (#46684) 2022-08-05 10:36:46 -07:00
utils build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
apply_redirects.spec.ts feat(router): allow guards and resolvers to be plain functions (#46684) 2022-08-05 10:36:46 -07:00
bootstrap.spec.ts feat(router): Create APIs for using Router without RouterModule (#47010) 2022-08-15 15:58:00 -07:00
BUILD.bazel build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
computed_state_restoration.spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
config.spec.ts refactor(router): Convert user-visible router errors to RuntimeError (#46562) 2022-06-29 12:50:23 -07:00
create_router_state.spec.ts feat(router): Add CanMatch guard to control whether a Route should match (#46021) 2022-06-13 22:53:49 +00:00
create_url_tree.spec.ts refactor(router): Convert user-visible router errors to RuntimeError (#46562) 2022-06-29 12:50:23 -07:00
default_export_component.ts feat(router): auto-unwrap default exports when lazy loading (#47586) 2022-10-04 14:40:58 -07:00
default_export_routes.ts feat(router): auto-unwrap default exports when lazy loading (#47586) 2022-10-04 14:40:58 -07:00
helpers.ts refactor(router): move types from config and interfaces to models (#44939) 2022-02-03 12:40:28 -08:00
integration.spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
page_title_strategy_spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
recognize.spec.ts refactor(router): Update recognize to use Observable instead of Promise (#46021) 2022-06-13 22:53:49 +00:00
regression_integration.spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
router.spec.ts feat(router): allow guards and resolvers to be plain functions (#46684) 2022-08-05 10:36:46 -07:00
router_link_spec.ts feat(router): merge RouterLinkWithHref into RouterLink (#47630) 2022-10-05 15:16:43 -07:00
router_preloader.spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
router_scroller.spec.ts feat(router): Create APIs for using Router without RouterModule (#47010) 2022-08-15 15:58:00 -07:00
router_state.spec.ts feat(router): expose resolved route title (#46826) 2022-07-21 09:24:56 +00:00
shared.spec.ts fix(router): fix error when calling ParamMap.get function (#31599) 2020-06-25 11:57:24 -07:00
standalone.spec.ts test(router): Ensure change detection runs after navigation (#47629) 2022-10-04 16:19:32 -07:00
url_serializer.spec.ts refactor(router): Convert user-visible router errors to RuntimeError (#46562) 2022-06-29 12:50:23 -07:00
url_tree.spec.ts fix(router): Allow question marks in query param values (#31187) 2021-08-06 10:49:37 -07:00