0

I am using activated route in my code as below,

this.route.paramMap.pipe(
switchMap((params: ParamMap) =>

while writing isolated test case i am getting below error

TypeError: this.route.paramMap.pipe is not a function

I am mocking route object as below,

const routeSpy = jasmine.createSpyObj(['paramMap']);

How can i resolve the above issue?

I am mocking route object as below,

const routeSpy = jasmine.createSpyObj(['paramMap']);
Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134
subbu
  • 11
  • 3

0 Answers0