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

Fix the failing test.

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