Fix failing tests.
This commit is contained in:
parent
8b459c68b1
commit
0746f2aa68
@ -77,10 +77,10 @@
|
|||||||
expect(this.chatboxviews.trimChats).toHaveBeenCalled();
|
expect(this.chatboxviews.trimChats).toHaveBeenCalled();
|
||||||
|
|
||||||
chatboxview = this.chatboxviews.get(jid);
|
chatboxview = this.chatboxviews.get(jid);
|
||||||
spyOn(chatboxview, 'hide').andCallThrough();
|
spyOn(chatboxview, 'minimize').andCallThrough();
|
||||||
chatboxview.model.set({'minimized': true});
|
chatboxview.model.set({'minimized': true});
|
||||||
expect(trimmed_chatboxes.addChat).toHaveBeenCalled();
|
expect(trimmed_chatboxes.addChat).toHaveBeenCalled();
|
||||||
expect(chatboxview.hide).toHaveBeenCalled();
|
expect(chatboxview.minimize).toHaveBeenCalled();
|
||||||
trimmedview = trimmed_chatboxes.get(jid);
|
trimmedview = trimmed_chatboxes.get(jid);
|
||||||
}
|
}
|
||||||
var key = this.chatboxviews.keys()[1];
|
var key = this.chatboxviews.keys()[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user