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

fixing tests

This commit is contained in:
Patrik J. Braun 2020-01-07 23:10:53 +01:00
parent 0783acc9e5
commit dd94ec8a72
2 changed files with 3 additions and 2 deletions

View File

@ -24,12 +24,13 @@ class MockNetworkService {
}
class MockShareService {
setUserObs(user: any) {
onNewUser(user: any) {
}
}
describe('AuthenticationService', () => {
beforeEach(() => {
localStorage.clear();
TestBed.configureTestingModule({
providers: [
VersionService,

View File

@ -47,7 +47,7 @@ describe('UserService', () => {
spyOn(networkService, 'getJson');
await userService.getSessionUser();
expect(networkService.getJson).toHaveBeenCalled();
expect((<any>networkService.getJson).calls.argsFor(0)).toEqual(['/user/login']);
expect((<any>networkService.getJson).calls.argsFor(0)).toEqual(['/user/me']);
}));