浏览代码

Fix failing tests due to new defaults.

JC Brand 8 年之前
父节点
当前提交
51fc401a24
共有 3 个文件被更改,包括 4 次插入0 次删除
  1. 1 0
      spec/controlbox.js
  2. 1 0
      spec/converse.js
  3. 2 0
      spec/protocol.js

+ 1 - 0
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";

+ 1 - 0
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."));

+ 2 - 0
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');