Skip to content

Commit

Permalink
fixed oauth2 & popup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sahat committed Aug 30, 2016
1 parent e662f9b commit 361f7c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions test/oauth2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ describe('OAuth2', () => {
spyOn(window, 'open');
oauth2.init(config.providers.github);

timeout.flush();
timeout.verifyNoPendingTasks();

expect(window.open).toHaveBeenCalled();
});

Expand All @@ -61,9 +58,6 @@ describe('OAuth2', () => {
expect(result).toEqual('The popup window was closed');
});

timeout.flush();
timeout.verifyNoPendingTasks();

expect(popup.polling).toHaveBeenCalled();
});

Expand Down
4 changes: 2 additions & 2 deletions test/popup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ describe('Popup', () => {

it('should open a new popup', () => {
spyOn(window, 'open');
popup.open('about:blank', 'test', { width: 500, height: 500 });
interval.flush(300);
popup.open('about:blank', 'test', { width: 500, height: 500 }, 'http://localhost/redirect', true);
interval.flush(1000);
expect(window.open).toHaveBeenCalled();
});

Expand Down

0 comments on commit 361f7c3

Please sign in to comment.