From 51fc401a249f2cc49e168966f7bd73579627b60d Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 17 Feb 2017 09:45:34 +0000 Subject: [PATCH] Fix failing tests due to new defaults. --- spec/controlbox.js | 1 + spec/converse.js | 1 + spec/protocol.js | 2 ++ 3 files changed, 4 insertions(+) diff --git a/spec/controlbox.js b/spec/controlbox.js index 1ac5737a0..b670cf5ca 100644 --- a/spec/controlbox.js +++ b/spec/controlbox.js @@ -586,6 +586,7 @@ })); it("will be hidden when appearing under a collapsed group", mock.initConverse(function (_converse) { + _converse.roster_groups = false; _addContacts(_converse); _converse.rosterview.$el.find('dt.roster-group').find('a.group-toggle').click(); var name = "Max Mustermann"; diff --git a/spec/converse.js b/spec/converse.js index 105c22f6f..8e91549e5 100644 --- a/spec/converse.js +++ b/spec/converse.js @@ -39,6 +39,7 @@ it("needs jid, rid and sid values when not using keepalive", mock.initConverse(function (_converse) { var jid = _converse.jid; delete _converse.jid; + _converse.keepalive = false; _converse.authentication = "prebind"; expect(_converse.logIn.bind(_converse)).toThrow( new Error("attemptPreboundSession: If you use prebind and not keepalive, then you MUST supply JID, RID and SID values or a prebind_url.")); diff --git a/spec/protocol.js b/spec/protocol.js index 41196a9b7..1d3693b5d 100644 --- a/spec/protocol.js +++ b/spec/protocol.js @@ -50,6 +50,7 @@ /* The process by which a user subscribes to a contact, including * the interaction between roster items and subscription states. */ + _converse.roster_groups = false; var contact, stanza, sent_stanza, IQ_id; runs(function () { test_utils.openControlBox(_converse); @@ -442,6 +443,7 @@ it("Unsubscribe to a contact when subscription is mutual", mock.initConverse(function (_converse) { var sent_IQ, IQ_id, jid = 'annegreet.gomez@localhost'; + _converse.roster_groups = false; runs(function () { test_utils.openControlBox(_converse); test_utils.createContacts(_converse, 'current');