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:
Julie Ralph
2016-06-24 12:41:57 -07:00
committed by GitHub
parent 1143b0389a
commit dcf75126bf
8 changed files with 7 additions and 27 deletions

View File

@ -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;