diff --git a/libtextsecure/test/generate_keys_test.js b/libtextsecure/test/generate_keys_test.js
index 21cef1bd7aed..2803354ac1cf 100644
--- a/libtextsecure/test/generate_keys_test.js
+++ b/libtextsecure/test/generate_keys_test.js
@@ -59,7 +59,8 @@ describe("Key generation", function() {
* }
*/
before(function(done) {
- generateKeys(count).then(function(res) {
+ var accountManager = new textsecure.AccountManager('');
+ accountManager.generateKeys(count).then(function(res) {
result = res;
}).then(done,done);
});
@@ -94,7 +95,8 @@ describe("Key generation", function() {
describe('the second time', function() {
var result;
before(function(done) {
- generateKeys(count).then(function(res) {
+ var accountManager = new textsecure.AccountManager('');
+ accountManager.generateKeys(count).then(function(res) {
result = res;
}).then(done,done);
});
@@ -129,7 +131,8 @@ describe("Key generation", function() {
describe('the third time', function() {
var result;
before(function(done) {
- generateKeys(count).then(function(res) {
+ var accountManager = new textsecure.AccountManager('');
+ accountManager.generateKeys(count).then(function(res) {
result = res;
}).then(done,done);
});
diff --git a/libtextsecure/test/index.html b/libtextsecure/test/index.html
index 837b5363dfad..e6d935adc67b 100644
--- a/libtextsecure/test/index.html
+++ b/libtextsecure/test/index.html
@@ -24,7 +24,6 @@
-
@@ -40,7 +39,6 @@
-