I am subscribing to route on ngOnInit.
constructor(private route: ActivatedRoute)
ngOnInit() {
this.route.queryParamMap.subscribe(params => {
this.mode = 'test';
})
}
I was able to test all other methods in my component except the route which I am not sure how to test. I also dont see any exact answer for such question.
Can anyone please help writing unit test for this piece.