Unnest before statements

// FREEBIE
This commit is contained in:
lilia 2016-05-04 00:31:32 -07:00
parent 348ee0b3e7
commit 6589ec544a

View file

@ -91,10 +91,10 @@ describe("SignalProtocolStore", function() {
});
});
describe('removePreKey', function() {
before(function(done) {
store.storePreKey(2, testKey).then(done);
});
it('deletes prekeys', function(done) {
before(function(done) {
store.storePreKey(2, testKey).then(done);
});
store.removePreKey(2, testKey).then(function() {
return store.loadPreKey(2).then(function(key) {
assert.isUndefined(key);
@ -113,10 +113,10 @@ describe("SignalProtocolStore", function() {
});
});
describe('removeSignedPreKey', function() {
before(function(done) {
store.storeSignedPreKey(4, testKey).then(done);
});
it('deletes signed prekeys', function(done) {
before(function(done) {
store.storeSignedPreKey(4, testKey).then(done);
});
store.removeSignedPreKey(4, testKey).then(function() {
return store.loadSignedPreKey(4).then(function(key) {
assert.isUndefined(key);