Skip to content

Commit 135ac16

Browse files
fix: TTA-90 fix test login component
1 parent 4223b7d commit 135ac16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/modules/login/login.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe('LoginComponent', () => {
101101
it('should sign up or login with google if is not logged-in into the app Locally', inject([Router], (router: Router) => {
102102
spyOn(loginService, 'isLogin').and.returnValue(of(false));
103103
spyOn(loginService, 'setLocalStorage').and.returnValue();
104-
spyOn(loginService, 'getUser').and.returnValue(of(() => {}));
104+
spyOn(loginService, 'getUser').and.returnValue(of({token: ''}));
105105
spyOn(loginService, 'setCookies').and.returnValue();
106106
spyOn(loginService, 'signIn').and.returnValue();
107107
spyOn(featureToggleCookiesService, 'setCookies').and.returnValue(featureToggleCookiesService.setCookies());

0 commit comments

Comments
 (0)