{ "id": "api/router/testing", "title": "@angular/router/testing", "contents": "\n\n
\n
\n
\n \n API > @angular/router\n
\n \n
\n \n
\n

@angular/router/testinglink

\n \n \n \n \n
\n\n \n\n
\n

Supplies a testing module for the Angular Router subsystem.

\n\n \n\n \n\n\n \n\n

Entry point exportslink

\n \n \n \n \n \n
\n

NgModuleslink

\n \n \n \n \n \n \n \n
RouterTestingModule\n \n

Sets up the router to be used for testing.

\n\n
\n
\n \n\n \n \n \n
\n

Classeslink

\n \n \n \n \n \n \n \n
SpyNgModuleFactoryLoader\n \n

Allows to simulate the loading of ng modules in tests.

\n\n
\n
\n \n\n \n \n \n\n \n \n \n
\n

Functionslink

\n \n \n \n \n \n \n \n
setupTestingRouter\n \n

Router setup factory function used for testing.

\n\n
\n
\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n
\n
\n\n\n" }