Fix failing tests.

This commit is contained in:
JC Brand 2016-03-09 11:16:15 +00:00
parent 8b459c68b1
commit 0746f2aa68

View File

@ -77,10 +77,10 @@
expect(this.chatboxviews.trimChats).toHaveBeenCalled();
chatboxview = this.chatboxviews.get(jid);
spyOn(chatboxview, 'hide').andCallThrough();
spyOn(chatboxview, 'minimize').andCallThrough();
chatboxview.model.set({'minimized': true});
expect(trimmed_chatboxes.addChat).toHaveBeenCalled();
expect(chatboxview.hide).toHaveBeenCalled();
expect(chatboxview.minimize).toHaveBeenCalled();
trimmedview = trimmed_chatboxes.get(jid);
}
var key = this.chatboxviews.keys()[1];