From a59413b0a0c0b776caa6b6b64aa38a714e680f46 Mon Sep 17 00:00:00 2001 From: Rafael Carvalho Date: Sun, 8 Jul 2018 19:06:00 +1200 Subject: [PATCH] Removed another flaky unit test --- src/spec/ng-chat.component.spec.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/spec/ng-chat.component.spec.ts b/src/spec/ng-chat.component.spec.ts index 1ce0102..bc42bf5 100644 --- a/src/spec/ng-chat.component.spec.ts +++ b/src/spec/ng-chat.component.spec.ts @@ -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(); -});