Skip to content

Commit

Permalink
angular: Update AuthGuard test
Browse files Browse the repository at this point in the history
  • Loading branch information
olicooper committed Jan 11, 2021
1 parent 6b821e3 commit 50be0e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('AuthGuard', () => {
spectator.inject(OAuthService).hasValidAccessToken.andReturn(false);
const initLoginSpy = jest.spyOn(authService, 'initLogin');

expect(guard.canActivate()).toBe(true);
expect(guard.canActivate()).toBe(false);
expect(initLoginSpy).toHaveBeenCalled();
});
});

0 comments on commit 50be0e4

Please sign in to comment.