angular: Update AuthGuard test

pull/7148/head
Oliver Cooper 4 years ago
parent 6b821e3a56
commit 50be0e4ab3

@ -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();
});
});

Loading…
Cancel
Save