|
@@ -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));
|
|
|
}));
|