diff options
author | Dan <danjm.com@gmail.com> | 2018-02-08 08:49:14 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-02-08 08:49:14 +0800 |
commit | b0db68a281168a94316823387b1670839990dd63 (patch) | |
tree | 153ca25095e5293951df032c8aa4860b2fe9965d /test/unit/migrations/021-test.js | |
parent | 7f151b861cc3a565d3feefc50b3be25ab4490ac8 (diff) | |
parent | c50a197ab95b462b4416cbf85139f80db9b70f0c (diff) | |
download | tangerine-wallet-browser-b0db68a281168a94316823387b1670839990dd63.tar.gz tangerine-wallet-browser-b0db68a281168a94316823387b1670839990dd63.tar.zst tangerine-wallet-browser-b0db68a281168a94316823387b1670839990dd63.zip |
Merge branch 'uat' into uat-next
Diffstat (limited to 'test/unit/migrations/021-test.js')
-rw-r--r-- | test/unit/migrations/021-test.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/unit/migrations/021-test.js b/test/unit/migrations/021-test.js new file mode 100644 index 000000000..458e9b4b5 --- /dev/null +++ b/test/unit/migrations/021-test.js @@ -0,0 +1,16 @@ +const assert = require('assert') + +const wallet2 = require('../../lib/migrations/002.json') +const migration21 = require('../../../app/scripts/migrations/021') + +describe('wallet2 is migrated successfully with out the BlacklistController', () => { + it('should delete BlacklistController key', (done) => { + migration21.migrate(wallet2) + .then((migratedData) => { + assert.equal(migratedData.meta.version, 21) + assert(!migratedData.data.BlacklistController) + assert(!migratedData.data.RecentBlocks) + done() + }).catch(done) + }) +}) |