2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
|
2016-04-28 20:50:03 -04:00
|
|
|
import {Location} from '@angular/common';
|
|
|
|
import {SpyObject, proxy} from '@angular/core/testing/testing_internal';
|
2016-06-08 19:38:52 -04:00
|
|
|
import {Router, RouterOutlet} from '@angular/router-deprecated';
|
2015-08-26 14:41:41 -04:00
|
|
|
|
|
|
|
export class SpyRouter extends SpyObject {
|
|
|
|
constructor() { super(Router); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyRouterOutlet extends SpyObject {
|
|
|
|
constructor() { super(RouterOutlet); }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyLocation extends SpyObject {
|
|
|
|
constructor() { super(Location); }
|
2015-11-23 13:47:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyPlatformLocation extends SpyObject {
|
|
|
|
pathname: string = null;
|
2016-02-25 19:18:55 -05:00
|
|
|
search: string = null;
|
|
|
|
hash: string = null;
|
2015-11-23 13:47:06 -05:00
|
|
|
constructor() { super(SpyPlatformLocation); }
|
|
|
|
}
|