Friday, 1 June 2018
Monday, 3 April 2017
When adding routing to an AngularCLI project you need to also update the startup test with the RouterTestingModule.
Failure to do so results in the following error when running ng test:
Here is the fix (click on the image to enlarge):
Source code available here: