From b350efa646d0be4bb8c69e1cb4b9bf0b318f6c98 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 31 May 2013 21:13:01 +0200 Subject: [PATCH] Fix tests --- spec/MainSpec.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spec/MainSpec.js b/spec/MainSpec.js index 512e9e947..cf7ed6303 100644 --- a/spec/MainSpec.js +++ b/spec/MainSpec.js @@ -471,8 +471,6 @@ }).c('body').t(message).up() .c('active', {'xmlns': 'http://jabber.org/protocol/chatstates'}).tree(); - spyOn(this, 'getVCard').andCallThrough(); - // We don't already have an open chatbox for this user expect(this.chatboxes.get(sender_jid)).not.toBeDefined(); @@ -483,10 +481,6 @@ }, converse)); waits(500); runs($.proxy(function () { - // Since we didn't already have an open chatbox, one - // will asynchronously created inside a callback to - // getVCard - expect(this.getVCard).toHaveBeenCalled(); // Check that the chatbox and its view now exist var chatbox = this.chatboxes.get(sender_jid); var chatboxview = this.chatboxesview.views[sender_jid];