Browse Source

Fix the failing test.

JC Brand 10 years ago
parent
commit
9dae305c23
1 changed files with 3 additions and 3 deletions
  1. 3 3
      spec/otr.js

+ 3 - 3
spec/otr.js

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