diff --git a/tests/services/phase.service.spec.ts b/tests/services/phase.service.spec.ts index 9abe936d..6611cba3 100644 --- a/tests/services/phase.service.spec.ts +++ b/tests/services/phase.service.spec.ts @@ -130,7 +130,7 @@ describe('PhaseService', () => { }); describe('changePhase(Phase)', () => { - it('should set current phase', () => { + it('should set current phase and redirect with current phase and repo', () => { phaseService.setRepository(WATCHER_REPO); expect(phaseService.currentPhase).toEqual(Phase.issuesViewer); @@ -138,6 +138,9 @@ describe('PhaseService', () => { phaseService.changePhase(Phase.activityDashboard); expect(phaseService.currentPhase).toEqual(Phase.activityDashboard); + expect(routerSpy.navigate).toHaveBeenCalledWith([Phase.activityDashboard], { + queryParams: { repo: WATCHER_REPO.toString() } + }); }); });