this.router.getcurrentnavigation is not a function unit test code example
Example: this.router.getcurrentnavigation is not a function unit test
const routerSpy = jasmine.createSpyObj('Router', ['getCurrentNavigation', 'navigate']);
const routerSpy = jasmine.createSpyObj('Router', ['getCurrentNavigation', 'navigate']);