Commit 5124c05f authored by JC Brand's avatar JC Brand

Fix (some) tests.

parent 9f251f72
......@@ -12,6 +12,7 @@
beforeEach(function () {
runs(function () {
test_utils.closeAllChatBoxes();
test_utils.clearBrowserStorage();
});
});
......@@ -261,7 +262,7 @@
var $chat_content = view.$el.find('.chat-content');
expect($chat_content.length).toBe(0); // There shouldn't be a chat content area anymore
var $chat_body = view.$el.find('.chat-body');
expect($chat_body.html()).toBe('<p>You have been kicked from this room</p><p>The reason given is: "Avaunt, you cullion!"</p>');
expect($chat_body.html().trim()).toBe('<p>You have been kicked from this room</p><p>The reason given is: "Avaunt, you cullion!"</p>');
}, converse));
it("can be saved to, and retrieved from, browserStorage", $.proxy(function () {
......
......@@ -38,6 +38,8 @@
mock.mock_connection = {
'_proto': {},
'connected': true,
'authenticated': true,
'mock': true,
'muc': {
'listRooms': function () {},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment