diff options
author | Frankie <frankie.diamond@gmail.com> | 2018-02-01 06:15:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-01 06:15:52 +0800 |
commit | 1eec2ca8c0e42fdf603f4f6b19c75f61ecbc8fc3 (patch) | |
tree | eb2a8f60bc282bcb80e994ae50f209c00f86b406 /test/unit | |
parent | f16535619692dd7f1c24bcc07875d60804d50ee2 (diff) | |
parent | 6106ff020f89fafe5ab7d4372d9e48d7b6f5f483 (diff) | |
download | tangerine-wallet-browser-1eec2ca8c0e42fdf603f4f6b19c75f61ecbc8fc3.tar tangerine-wallet-browser-1eec2ca8c0e42fdf603f4f6b19c75f61ecbc8fc3.tar.gz tangerine-wallet-browser-1eec2ca8c0e42fdf603f4f6b19c75f61ecbc8fc3.tar.bz2 tangerine-wallet-browser-1eec2ca8c0e42fdf603f4f6b19c75f61ecbc8fc3.tar.lz tangerine-wallet-browser-1eec2ca8c0e42fdf603f4f6b19c75f61ecbc8fc3.tar.xz tangerine-wallet-browser-1eec2ca8c0e42fdf603f4f6b19c75f61ecbc8fc3.tar.zst tangerine-wallet-browser-1eec2ca8c0e42fdf603f4f6b19c75f61ecbc8fc3.zip |
Merge pull request #3148 from MetaMask/localStorage-clean-up
remove BlacklistController from disk state
Diffstat (limited to 'test/unit')
-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) + }) +}) |