RouterTestingModule
Class
deprecated
Sets up the router to be used for testing.
Deprecation warning
API
class RouterTestingModule { static withRoutes(routes: Routes, config?: any): ModuleWithProviders<RouterTestingModule>;}
withRoutes
ModuleWithProviders<RouterTestingModule>Description
Sets up the router to be used for testing.
The modules sets up the router to be used for testing.
It provides spy implementations of Location and LocationStrategy.
Jump to details