Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Removed another flaky unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rpaschoal committed Jul 8, 2018
1 parent 3b47448 commit a59413b
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/spec/ng-chat.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1079,22 +1079,3 @@ it('Must invoke onUserClicked event when a user is clicked on the friend list',
expect(eventInvoked).toBeTruthy();
expect(eventArgument).toBe(user);
});

it('Must not focus on the new window when it is collapsed', () =>{
this.subject.historyEnabled = false;
this.subject.maximizeWindowOnNewMessage = false;

let user: User = {
id: 999,
displayName: 'Test user',
status: 1,
avatar: ''
};

spyOn(this.subject, 'focusOnWindow');

let result = this.subject.openChatWindow(user, true);

expect(result).not.toBeUndefined();
expect(this.subject.focusOnWindow).not.toHaveBeenCalled();
});

0 comments on commit a59413b

Please sign in to comment.