A spy for Location that allows tests to fire simulated location events.
Location
class SpyLocation implements Location { urlChanges: string[]; setInitialPath(url: string): void; setBaseHref(url: string): void; path(): string; getState(): unknown; isCurrentPathEqualTo(path: string, query?: string): boolean; simulateUrlPop(pathname: string): void; simulateHashChange(pathname: string): void; prepareExternalUrl(url: string): string; go(path: string, query?: string, state?: any): void; replaceState(path: string, query?: string, state?: any): void; forward(): void; back(): void; historyGo(relativePosition?: number): void; onUrlChange(fn: (url: string, state: unknown) => void): VoidFunction; subscribe(onNext: (value: any) => void, onThrow?: ((error: any) => void) | null | undefined, onReturn?: (() => void) | null | undefined): SubscriptionLike; normalize(url: string): string;}