aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/migrations/022-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/migrations/022-test.js')
-rw-r--r--test/unit/migrations/022-test.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/unit/migrations/022-test.js b/test/unit/migrations/022-test.js
index f8ee00e38..f7dd35b08 100644
--- a/test/unit/migrations/022-test.js
+++ b/test/unit/migrations/022-test.js
@@ -17,16 +17,16 @@ const storage = {
describe('storage is migrated successfully where transactions that are submitted have submittedTimes', () => {
it('should add submittedTime key on the txMeta if appropriate', (done) => {
migration22.migrate(storage)
- .then((migratedData) => {
- const [txMeta1, txMeta2, txMeta3] = migratedData.data.TransactionController.transactions
- assert.equal(migratedData.meta.version, 22)
- // should have written a submitted time
- assert(txMeta1.submittedTime)
- // should not have written a submitted time because it already has one
- assert.equal(txMeta2.submittedTime, properTime)
- // should not have written a submitted time
- assert(!txMeta3.submittedTime)
- done()
- }).catch(done)
+ .then((migratedData) => {
+ const [txMeta1, txMeta2, txMeta3] = migratedData.data.TransactionController.transactions
+ assert.equal(migratedData.meta.version, 22)
+ // should have written a submitted time
+ assert(txMeta1.submittedTime)
+ // should not have written a submitted time because it already has one
+ assert.equal(txMeta2.submittedTime, properTime)
+ // should not have written a submitted time
+ assert(!txMeta3.submittedTime)
+ done()
+ }).catch(done)
})
})