浏览代码

Fix failing tests.

JC Brand 9 年之前
父节点
当前提交
0746f2aa68
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      spec/chatbox.js

+ 2 - 2
spec/chatbox.js

@@ -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];