diff --git a/spec/chatbox.js b/spec/chatbox.js index e3b64e3e3..b7e6a6c4b 100644 --- a/spec/chatbox.js +++ b/spec/chatbox.js @@ -494,7 +494,7 @@ _converse.visible_toolbar_buttons.call = true; // enable the button test_utils.openChatBoxFor(_converse, contact_jid); view = _converse.chatboxviews.get(contact_jid); - var toolbar = view.el.querySelector('ul.chat-toolbar'); + toolbar = view.el.querySelector('ul.chat-toolbar'); call_button = toolbar.querySelector('.toggle-call'); call_button.click(); expect(_converse.emit).toHaveBeenCalledWith('callButtonClicked', jasmine.any(Object));