aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-09-12 23:50:42 +0800
committerDan Finlay <dan@danfinlay.com>2016-09-12 23:50:42 +0800
commit5c1d8e299e68be6a74935f4eff56f68a9ccf5b72 (patch)
tree566dbe5d28526c73e754322b45e5394ab48fb8f6 /test
parentf51a13abaf8808968db279c060ec360c174253c7 (diff)
downloadtangerine-wallet-browser-5c1d8e299e68be6a74935f4eff56f68a9ccf5b72.tar
tangerine-wallet-browser-5c1d8e299e68be6a74935f4eff56f68a9ccf5b72.tar.gz
tangerine-wallet-browser-5c1d8e299e68be6a74935f4eff56f68a9ccf5b72.tar.bz2
tangerine-wallet-browser-5c1d8e299e68be6a74935f4eff56f68a9ccf5b72.tar.lz
tangerine-wallet-browser-5c1d8e299e68be6a74935f4eff56f68a9ccf5b72.tar.xz
tangerine-wallet-browser-5c1d8e299e68be6a74935f4eff56f68a9ccf5b72.tar.zst
tangerine-wallet-browser-5c1d8e299e68be6a74935f4eff56f68a9ccf5b72.zip
Select first address when restoring vault
Fixes #642
Diffstat (limited to 'test')
-rw-r--r--test/unit/idStore-test.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/unit/idStore-test.js b/test/unit/idStore-test.js
index a763eb0e7..1ed1bf9a7 100644
--- a/test/unit/idStore-test.js
+++ b/test/unit/idStore-test.js
@@ -128,5 +128,23 @@ describe('IdentityStore', function() {
done()
})
})
+
+ it('should allow restoring and unlocking again', function (done) {
+ const assertion = assertions[0]
+ idStore.recoverFromSeed(password, assertion.seed, (err) => {
+ assert.ifError(err)
+
+ var received = accounts[0].toLowerCase()
+ var expected = assertion.account.toLowerCase()
+ assert.equal(received, expected)
+
+
+ idStore.submitPassword(password, function(err, account) {
+ assert.ifError(err)
+ assert.equal(account, expected)
+ done()
+ })
+ })
+ })
})
})