2016-06-23 09:47:54 -07: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 17:50:03 -07:00
|
|
|
import {Location} from '@angular/common';
|
|
|
|
import {SpyObject, proxy} from '@angular/core/testing/testing_internal';
|
2016-06-08 16:38:52 -07:00
|
|
|
import {Router, RouterOutlet} from '@angular/router-deprecated';
|
2015-08-26 11:41:41 -07: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 10:47:06 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
export class SpyPlatformLocation extends SpyObject {
|
|
|
|
pathname: string = null;
|
2016-02-25 16:18:55 -08:00
|
|
|
search: string = null;
|
|
|
|
hash: string = null;
|
2015-11-23 10:47:06 -08:00
|
|
|
constructor() { super(SpyPlatformLocation); }
|
|
|
|
}
|