ngx-testing-tools
Version:
Makes Angular testing easier
9 lines (8 loc) • 419 B
TypeScript
import { Routes } from '@angular/router';
import { RouterTestBed, RouterTestBedOptions } from './models';
/**
* Creates a new `RouterTestBed` to configure the custom test bed and wrap the assertion test.
* @param routes - the routes to be tested
* @param options - check `RouterTestBedOptions`
*/
export declare function routerTestBed<T extends Routes>(routes: T, options?: RouterTestBedOptions): RouterTestBed<T>;