From 1ec6ed6985ebc1a6a214b7dd610178b5f87b410f Mon Sep 17 00:00:00 2001 From: Braun Patrik Date: Thu, 5 May 2016 18:00:36 +0200 Subject: [PATCH] fixing user.service test --- frontend/app/model/network/user.service.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"]); }));