Fix libtextsecure tests

// FREEBIE
This commit is contained in:
lilia
2015-10-02 15:08:21 -07:00
parent 5bf608598c
commit 5eabfa2559
2 changed files with 6 additions and 5 deletions

View File

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