aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/migrations/021-test.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-08 23:50:04 +0800
committerGitHub <noreply@github.com>2018-02-08 23:50:04 +0800
commitf39222c9afd9dcab4c6234940eb9a9cb06dbc6f0 (patch)
tree55840c5f6da9512b613aa289f8ba555fe8f7c290 /test/unit/migrations/021-test.js
parente9c2c0eec19514468fd53087f974709d5df9c35b (diff)
parentb0db68a281168a94316823387b1670839990dd63 (diff)
downloadtangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.tar.gz
tangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.tar.zst
tangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.zip
Merge pull request #3206 from danjm/merge-uat-to-uatnext-feb072019
[NewUI] Merge uat to uatnext feb072019
Diffstat (limited to 'test/unit/migrations/021-test.js')
-rw-r--r--test/unit/migrations/021-test.js16
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)
+ })
+})