diff --git a/frontend/app/model/network/user.service.spec.ts b/frontend/app/model/network/user.service.spec.ts index d4b2b072..324e0dfc 100644 --- a/frontend/app/model/network/user.service.spec.ts +++ b/frontend/app/model/network/user.service.spec.ts @@ -39,9 +39,9 @@ describe('UserService', () => { })); it('should call getJson at getSessionUser', inject([UserService,NetworkService], (userService,networkService) => { - spyOn(networkService,"getJson"); - let credential = new LoginCredential("name","pass"); - userService.login(credential); + spyOn(networkService,"getJson"); + userService.getSessionUser(); + expect(networkService.getJson.calls.argsFor(0)).toEqual(["/user/login"]); }));