Fix libtextsecure tests
// FREEBIE
This commit is contained in:
parent
5bf608598c
commit
5eabfa2559
2 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue