Fix tests

// FREEBIE
This commit is contained in:
lilia 2017-05-26 17:39:20 -07:00 committed by Scott Nonnenberg
parent f095a1583e
commit 2584f4fae4
4 changed files with 15 additions and 6 deletions

View file

@ -14,7 +14,9 @@ describe('Protocol Wrapper', function() {
localStorage.clear();
libsignal.KeyHelper.generateIdentityKeyPair().then(function(identityKey) {
return textsecure.storage.protocol.saveIdentity(identifier, identityKey);
}).then(done);
}).then(function() {
done();
});
});
describe('processPreKey', function() {
it('rejects if the identity key changes', function(done) {