I have my TestBed configuration with the following provider:
{
provide: ActivatedRoute,
useValue: {
queryParams: of({fooObservable: true})
}
},
how can I write a jasmine spy that accesses this query parameter and tests whether it's true or false? I have done the following but I can't access it in order to test it.
fooSpy = spyOn(this.ActivatedRoute.queryParams, 'queryParams');