31 lines
822 B
TypeScript
31 lines
822 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import {Location} from '@angular/common';
|
|
import {SpyObject, proxy} from '@angular/core/testing/testing_internal';
|
|
import {Router, RouterOutlet} from '@angular/router-deprecated';
|
|
|
|
export class SpyRouter extends SpyObject {
|
|
constructor() { super(Router); }
|
|
}
|
|
|
|
export class SpyRouterOutlet extends SpyObject {
|
|
constructor() { super(RouterOutlet); }
|
|
}
|
|
|
|
export class SpyLocation extends SpyObject {
|
|
constructor() { super(Location); }
|
|
}
|
|
|
|
export class SpyPlatformLocation extends SpyObject {
|
|
pathname: string = null;
|
|
search: string = null;
|
|
hash: string = null;
|
|
constructor() { super(SpyPlatformLocation); }
|
|
}
|