From 6589ec544af75443c312d9bd506b89a0b9eba081 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 4 May 2016 00:31:32 -0700 Subject: [PATCH] Unnest before statements // FREEBIE --- test/storage_test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/storage_test.js b/test/storage_test.js index 6b081dd6..f001e5f2 100644 --- a/test/storage_test.js +++ b/test/storage_test.js @@ -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);