Commit 51fc401a authored by JC Brand's avatar JC Brand

Fix failing tests due to new defaults.

parent a1c15645
......@@ -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";
......
......@@ -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."));
......
......@@ -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');
......
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