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
Adding to @David Brown's response the code below is what worked for me.
.subscribe(res => { ... }, error => Observable.throw(error) )