JC Brand 8 years ago
parent
commit
47cf5c1910
1 changed files with 1 additions and 2 deletions
  1. 1 2
      spec/chatroom.js

+ 1 - 2
spec/chatroom.js

@@ -996,8 +996,7 @@
                 });
                 test_utils.openAndEnterChatRoom(_converse, 'lounge', 'localhost', 'dummy');
                 var view = _converse.chatboxviews.get('lounge@localhost');
-                view.close();
-                view.model.destroy(); // Manually calling this, otherwise we have to mock stanzas.
+                view.close(); // Hack, otherwise we have to mock stanzas.
 
                 var name = mock.cur_names[0];
                 var from_jid = name.replace(/ /g,'.').toLowerCase() + '@localhost';