File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
goldens/public-api/router/testing
packages/router/testing/src Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class RouterTestingHarness {
2424 get routeNativeElement(): HTMLElement | null ;
2525}
2626
27- // @public
27+ // @public @deprecated
2828export class RouterTestingModule {
2929 // (undocumented)
3030 static withRoutes(routes : Routes , config ? : ExtraOptions ): ModuleWithProviders <RouterTestingModule >;
Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ function throwInvalidConfigError(parameter: string): never {
6666 * ```
6767 *
6868 * @publicApi
69+ * @deprecated Use `provideRouter` or `RouterModule`/`RouterModule.forRoot` instead.
70+ * This module was previously used to provide a helpful collection of test fakes,
71+ * most notably those for `Location` and `LocationStrategy`. These are generally not
72+ * required anymore, as `MockPlatformLocation` is provided in `TestBed` by default.
73+ * However, you can use them directly with `provideLocationMocks`.
6974 */
7075@NgModule ( {
7176 exports : [ RouterModule ] ,
You can’t perform that action at this time.
0 commit comments