Commit 9dae305c authored by JC Brand's avatar JC Brand

Fix the failing test.

parent 4d3b4380
......@@ -21,7 +21,7 @@
var pp;
// With no prebind, the user's XMPP password is used and nothing is
// stored in session storage.
this.prebind = false;
this.authentication = "manual";
this.connection.pass = 's3cr3t!';
expect(this.otr.getSessionPassphrase()).toBe(this.connection.pass);
expect(window.sessionStorage.length).toBe(0);
......@@ -29,7 +29,7 @@
// With prebind, a random passphrase is generated and stored in
// session storage.
this.prebind = true;
this.authentication = "prebind";
pp = this.otr.getSessionPassphrase();
expect(pp).not.toBe(this.connection.pass);
expect(window.sessionStorage.length).toBe(1);
......@@ -37,7 +37,7 @@
expect(pp).toBe(window.sessionStorage[b64_sha1(converse.connection.jid)]);
// Clean up
this.prebind = false;
this.authentication = "manual";
}, converse));
}, converse, mock, test_utils));
}));
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