Explorar o código

Fix failing tests.

JC Brand %!s(int64=9) %!d(string=hai) anos
pai
achega
0746f2aa68
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      spec/chatbox.js

+ 2 - 2
spec/chatbox.js

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