Move to npm for several dependencies

mustache
jQuery
underscore
backbone
mocha
chai
intl-tel-input
This commit is contained in:
Scott Nonnenberg 2018-05-19 20:53:12 -07:00
parent a593a148e8
commit cfe0bd0e79
32 changed files with 146 additions and 35694 deletions

View file

@ -20,7 +20,7 @@ describe('Protocol Wrapper', function() {
});
});
describe('processPreKey', function() {
it('rejects if the identity key changes', function(done) {
it('rejects if the identity key changes', function() {
var address = new libsignal.SignalProtocolAddress(identifier, 1);
var builder = new libsignal.SessionBuilder(store, address);
return builder
@ -29,11 +29,10 @@ describe('Protocol Wrapper', function() {
encodedNumber: address.toString(),
})
.then(function() {
done(new Error('Allowed to overwrite identity key'));
throw new Error('Allowed to overwrite identity key');
})
.catch(function(e) {
assert.strictEqual(e.message, 'Identity key changed');
done();
});
});
});