fix(common/testing): remove internal MockLocationStrategy from common/testing (#9562)
BREAKING CHANGE: MockLocationStrategy was intended to be internal only and is now removed from the `@angular/common/testing` public api. Use `SpyLocation` from `@angular/common/testing` for location testing.
This commit is contained in:
17
tools/public_api_guard/common/testing.d.ts
vendored
17
tools/public_api_guard/common/testing.d.ts
vendored
@ -1,20 +1,3 @@
|
||||
export declare class MockLocationStrategy extends LocationStrategy {
|
||||
internalBaseHref: string;
|
||||
internalPath: string;
|
||||
internalTitle: string;
|
||||
urlChanges: string[];
|
||||
constructor();
|
||||
back(): void;
|
||||
forward(): void;
|
||||
getBaseHref(): string;
|
||||
onPopState(fn: (value: any) => void): void;
|
||||
path(): string;
|
||||
prepareExternalUrl(internal: string): string;
|
||||
pushState(ctx: any, title: string, path: string, query: string): void;
|
||||
replaceState(ctx: any, title: string, path: string, query: string): void;
|
||||
simulatePopState(url: string): void;
|
||||
}
|
||||
|
||||
export declare class SpyLocation implements Location {
|
||||
urlChanges: string[];
|
||||
back(): void;
|
||||
|
Reference in New Issue
Block a user