1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixing user.service test

This commit is contained in:
Braun Patrik 2016-05-05 18:00:36 +02:00
parent 3b0bcc44b0
commit 1ec6ed6985

View File

@ -39,9 +39,9 @@ describe('UserService', () => {
})); }));
it('should call getJson at getSessionUser', inject([UserService,NetworkService], (userService,networkService) => { it('should call getJson at getSessionUser', inject([UserService,NetworkService], (userService,networkService) => {
spyOn(networkService,"getJson"); spyOn(networkService,"getJson");
let credential = new LoginCredential("name","pass"); userService.getSessionUser();
userService.login(credential); expect(networkService.getJson.calls.argsFor(0)).toEqual(["/user/login"]);
})); }));