aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/migrations-test.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-20 04:03:00 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-20 04:03:00 +0800
commit8fe113e8d93a413c94d315ffeded01d2445b37dd (patch)
tree770e3f1d29cf7c539483534b54b7696d5b678215 /test/unit/migrations-test.js
parentb953dc9ae133a83ab37ba664246693e470ee2ed0 (diff)
parentdba41614d014413b6de72a2cb62466765706304d (diff)
downloadtangerine-wallet-browser-8fe113e8d93a413c94d315ffeded01d2445b37dd.tar
tangerine-wallet-browser-8fe113e8d93a413c94d315ffeded01d2445b37dd.tar.gz
tangerine-wallet-browser-8fe113e8d93a413c94d315ffeded01d2445b37dd.tar.bz2
tangerine-wallet-browser-8fe113e8d93a413c94d315ffeded01d2445b37dd.tar.lz
tangerine-wallet-browser-8fe113e8d93a413c94d315ffeded01d2445b37dd.tar.xz
tangerine-wallet-browser-8fe113e8d93a413c94d315ffeded01d2445b37dd.tar.zst
tangerine-wallet-browser-8fe113e8d93a413c94d315ffeded01d2445b37dd.zip
Merge branch 'master' into TransactionList
Diffstat (limited to 'test/unit/migrations-test.js')
-rw-r--r--test/unit/migrations-test.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/unit/migrations-test.js b/test/unit/migrations-test.js
index 3a3213ac5..092c0eccd 100644
--- a/test/unit/migrations-test.js
+++ b/test/unit/migrations-test.js
@@ -1,14 +1,16 @@
-var test = require('tape')
+var assert = require('assert')
var path = require('path')
var wallet1 = require(path.join('..', 'lib', 'migrations', '001.json'))
var migration2 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '002'))
-test('wallet1 is migrated successfully', function(t) {
-
- var result = migration2.migrate(wallet1.data)
- t.equal(result.config.provider.type, 'rpc', 'provider should be rpc')
- t.equal(result.config.provider.rpcTarget, 'https://rpc.metamask.io/', 'provider should be our rpc')
+describe('wallet1 is migrated successfully', function() {
+ it('should convert etherscan provider', function(done) {
+ var result = migration2.migrate(wallet1.data)
+ assert.equal(result.config.provider.type, 'rpc', 'provider should be rpc')
+ assert.equal(result.config.provider.rpcTarget, 'https://rpc.metamask.io/', 'provider should be our rpc')
+ done()
+ })
})