Sfoglia il codice sorgente

Fix failing tests due to new defaults.

JC Brand 8 anni fa
parent
commit
51fc401a24
3 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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) {
             it("will be hidden when appearing under a collapsed group", mock.initConverse(function (_converse) {
+                _converse.roster_groups = false;
                 _addContacts(_converse);
                 _addContacts(_converse);
                 _converse.rosterview.$el.find('dt.roster-group').find('a.group-toggle').click();
                 _converse.rosterview.$el.find('dt.roster-group').find('a.group-toggle').click();
                 var name = "Max Mustermann";
                 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) {
                 it("needs jid, rid and sid values when not using keepalive", mock.initConverse(function (_converse) {
                     var jid = _converse.jid;
                     var jid = _converse.jid;
                     delete _converse.jid;
                     delete _converse.jid;
+                    _converse.keepalive = false;
                     _converse.authentication = "prebind";
                     _converse.authentication = "prebind";
                     expect(_converse.logIn.bind(_converse)).toThrow(
                     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."));
                         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 process by which a user subscribes to a contact, including
                 * the interaction between roster items and subscription states.
                 * the interaction between roster items and subscription states.
                 */
                 */
+                _converse.roster_groups = false;
                 var contact, stanza, sent_stanza, IQ_id;
                 var contact, stanza, sent_stanza, IQ_id;
                 runs(function () {
                 runs(function () {
                     test_utils.openControlBox(_converse);
                     test_utils.openControlBox(_converse);
@@ -442,6 +443,7 @@
 
 
             it("Unsubscribe to a contact when subscription is mutual", mock.initConverse(function (_converse) {
             it("Unsubscribe to a contact when subscription is mutual", mock.initConverse(function (_converse) {
                 var sent_IQ, IQ_id, jid = 'annegreet.gomez@localhost';
                 var sent_IQ, IQ_id, jid = 'annegreet.gomez@localhost';
+                _converse.roster_groups = false;
                 runs(function () {
                 runs(function () {
                     test_utils.openControlBox(_converse);
                     test_utils.openControlBox(_converse);
                     test_utils.createContacts(_converse, 'current');
                     test_utils.createContacts(_converse, 'current');