20 lines
532 B
TypeScript
20 lines
532 B
TypeScript
import {Router, RouterOutlet, Location, PlatformLocation} from 'angular2/router';
|
|
import {SpyObject, proxy} from 'angular2/testing_internal';
|
|
|
|
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;
|
|
constructor() { super(SpyPlatformLocation); }
|
|
}
|