catsService);});describe('findAll',()=>{it('shouldreturnanarrayofcats',async()=>{constresult=['test'];jest.spyOn
routerSpy.navigate;//spyoncomponent's`gotoList()`methodconstcomponent=fixture.componentInstance;this.gotoListSpy=spyOn