Skip to content

Commit

Permalink
fix - users manager
Browse files Browse the repository at this point in the history
  • Loading branch information
1001daysofcode committed Jan 10, 2018
1 parent 77fab39 commit d09e355
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/pages/home/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,27 +164,11 @@ describe('HomePage', () => {
expect(el).toBeUndefined();
});

it('should request uid from Storage before loading home when view entered', fakeAsync(() => {
spyOn(component, 'requestUID').and.callThrough();
spyOn(storage, 'ready').and.callThrough();
spyOn(storage, 'get').and.callThrough();
spyOn(component, 'loadHome');
component.ionViewDidLoad();
tick();
fixture.detectChanges();
expect(component.requestUID).toHaveBeenCalled();
expect(storage.ready).toHaveBeenCalled();
expect(storage.get).toHaveBeenCalled();
expect(component.loadHome).toHaveBeenCalled();
}));

it('should load home', () => {
spyOn(component, 'timestampFeed').and.returnValue({ subscribe: () => {}});
spyOn(component, 'checkIfProfileBlocked');
spyOn(component, 'startLoader');
component.loadHome();
expect(component.timestampFeed).toHaveBeenCalled();
expect(component.checkIfProfileBlocked).toHaveBeenCalled();
expect(component.startLoader).toHaveBeenCalled();
});

Expand Down

0 comments on commit d09e355

Please sign in to comment.