From 2c7041f99aea35f940d1e83136cffe820b3626a7 Mon Sep 17 00:00:00 2001 From: Sean Sylver Date: Mon, 9 Dec 2024 14:53:08 -0800 Subject: [PATCH] Remove calls to tick function --- .../angular/src/app/services/util/prev-auth-guard.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 ccdbc5c6..5b7fc1ae 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,7 +204,6 @@ describe('PrevAuthGuard', () => { guard.canActivate(route, state); - tick(); // Simulate passage of time for observable flush(); // Flush any remaining async operations expect(guard.redirectToErrorPage).toHaveBeenCalled(); @@ -225,8 +224,7 @@ describe('PrevAuthGuard', () => { spyOn(guard, 'redirectToErrorPage'); guard.canActivate(route, state).subscribe(); - - tick(); // Advance async operations + flush(); // Flush any remaining async operations expect(guard.redirectToErrorPage).toHaveBeenCalled(); @@ -247,7 +245,6 @@ describe('PrevAuthGuard', () => { guard.canActivate(route, state).subscribe(); - tick(); flush(); // Flush any remaining async operations expect(guard.redirectToErrorPage).toHaveBeenCalled();