diff --git a/client/wfprev-war/src/main/angular/src/app/services/util/prev-auth-guard.spec.ts b/client/wfprev-war/src/main/angular/src/app/services/util/prev-auth-guard.spec.ts index 5b7fc1ae..8ae021a6 100644 --- a/client/wfprev-war/src/main/angular/src/app/services/util/prev-auth-guard.spec.ts +++ b/client/wfprev-war/src/main/angular/src/app/services/util/prev-auth-guard.spec.ts @@ -204,6 +204,7 @@ describe('PrevAuthGuard', () => { guard.canActivate(route, state); + tick(); flush(); // Flush any remaining async operations expect(guard.redirectToErrorPage).toHaveBeenCalled(); @@ -225,6 +226,7 @@ describe('PrevAuthGuard', () => { guard.canActivate(route, state).subscribe(); + tick(); flush(); // Flush any remaining async operations expect(guard.redirectToErrorPage).toHaveBeenCalled(); @@ -245,6 +247,7 @@ describe('PrevAuthGuard', () => { guard.canActivate(route, state).subscribe(); + tick(); flush(); // Flush any remaining async operations expect(guard.redirectToErrorPage).toHaveBeenCalled();