aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-05-17 00:09:28 +0800
committerGitHub <noreply@github.com>2017-05-17 00:09:28 +0800
commitd165f3a2b6f55cd1f4d4809c61ab3a4af5f8b070 (patch)
tree7329e8fde67876efe8bcfbc41e525e8766ff28e0 /test/unit
parent9560de80a0576cfd775f247c51ebac6a709f4864 (diff)
parent28aba6e9dea52b66534d6ecb9713a7d20947c57c (diff)
downloadtangerine-wallet-browser-d165f3a2b6f55cd1f4d4809c61ab3a4af5f8b070.tar.gz
tangerine-wallet-browser-d165f3a2b6f55cd1f4d4809c61ab3a4af5f8b070.tar.zst
tangerine-wallet-browser-d165f3a2b6f55cd1f4d4809c61ab3a4af5f8b070.zip
Merge pull request #1436 from MetaMask/mig13
migration 13 - change provider from testnet to ropsten
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/migrations-test.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/migrations-test.js b/test/unit/migrations-test.js
index 324e4d056..5bad25a45 100644
--- a/test/unit/migrations-test.js
+++ b/test/unit/migrations-test.js
@@ -16,6 +16,7 @@ const migration9 = require(path.join('..', '..', 'app', 'scripts', 'migrations',
const migration10 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '010'))
const migration11 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '011'))
const migration12 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '012'))
+const migration13 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '013'))
const oldTestRpc = 'https://rawtestrpc.metamask.io/'
@@ -97,6 +98,11 @@ describe('wallet1 is migrated successfully', () => {
}).then((twelfthResult) => {
assert.equal(twelfthResult.data.NoticeController.noticesList[0].body, '', 'notices that have been read should have an empty body.')
assert.equal(twelfthResult.data.NoticeController.noticesList[1].body, 'nonempty', 'notices that have not been read should not have an empty body.')
+
+ assert.equal(twelfthResult.data.config.provider.type, 'testnet', 'network is originally testnet.')
+ return migration13.migrate(twelfthResult)
+ }).then((thirteenthResult) => {
+ assert.equal(thirteenthResult.data.config.provider.type, 'ropsten', 'network has been changed to ropsten.')
})
})
})