aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-02-15 05:21:00 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-02-15 05:21:00 +0800
commitcd75d861874f300fdca7b20274d170d0023d6caf (patch)
treee28f70aeb29cb1461c4ec11126b2ca74b78f5fbc /test/unit
parentec8aa3d1f28e24586031f36151a3b5b5490b3248 (diff)
downloadtangerine-wallet-browser-cd75d861874f300fdca7b20274d170d0023d6caf.tar
tangerine-wallet-browser-cd75d861874f300fdca7b20274d170d0023d6caf.tar.gz
tangerine-wallet-browser-cd75d861874f300fdca7b20274d170d0023d6caf.tar.bz2
tangerine-wallet-browser-cd75d861874f300fdca7b20274d170d0023d6caf.tar.lz
tangerine-wallet-browser-cd75d861874f300fdca7b20274d170d0023d6caf.tar.xz
tangerine-wallet-browser-cd75d861874f300fdca7b20274d170d0023d6caf.tar.zst
tangerine-wallet-browser-cd75d861874f300fdca7b20274d170d0023d6caf.zip
Add migrations for removing terms of use data.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/migrations-test.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/migrations-test.js b/test/unit/migrations-test.js
index 715a5feb0..e4353b313 100644
--- a/test/unit/migrations-test.js
+++ b/test/unit/migrations-test.js
@@ -6,6 +6,7 @@ const wallet1 = require(path.join('..', 'lib', 'migrations', '001.json'))
const migration2 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '002'))
const migration3 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '003'))
const migration4 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '004'))
+const migration11 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '011'))
const oldTestRpc = 'https://rawtestrpc.metamask.io/'
const newTestRpc = 'https://testrpc.metamask.io/'
@@ -27,8 +28,11 @@ describe('wallet1 is migrated successfully', function() {
}).then((thirdResult) => {
assert.equal(thirdResult.data.config.provider.rpcTarget, null)
assert.equal(thirdResult.data.config.provider.type, 'testnet')
+ return migration11.migrate(thirdResult)
+ }).then((eleventhResult) => {
+ assert.equal(eleventhResult.data.isDisclaimerConfirmed, null)
+ assert.equal(eleventhResult.data.TOSHash, null)
})
-
+
})
})
-