I\'m testing a component which subscribe router params. Every test pass and everything works fine. But if I look in the console, I can see an error:
Error
You have to do 2 things, to solve this error.
1- add fixture.detectChanges(); in beforeEach() 2 - you need to add below, so that component can be clear.
afterEach(() => { fixture.destroy(); });