2017-12-15 12:58:42 -05:00
|
|
|
/** @stable */
|
|
|
|
export declare class RouterTestingModule {
|
2017-12-20 14:54:22 -05:00
|
|
|
static withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders;
|
2017-12-15 12:58:42 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/** @stable */
|
2017-12-20 14:54:22 -05:00
|
|
|
export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy): Router;
|
2017-12-15 12:58:42 -05:00
|
|
|
|
|
|
|
/** @stable */
|
|
|
|
export declare class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader {
|
|
|
|
stubbedModules: {
|
|
|
|
[path: string]: any;
|
|
|
|
};
|
|
|
|
constructor(compiler: Compiler);
|
|
|
|
load(path: string): Promise<NgModuleFactory<any>>;
|
|
|
|
}
|