aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/idStore-test.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/unit/idStore-test.js b/test/unit/idStore-test.js
index cbbec43b5..3d28ddf90 100644
--- a/test/unit/idStore-test.js
+++ b/test/unit/idStore-test.js
@@ -83,8 +83,19 @@ describe('IdentityStore', function() {
assert.ifError(err)
let newKeystore = idStore._idmgmt.keyStore
+
assert.equal(accounts[0], firstAccount)
- done()
+
+ accounts = []
+ const secondSeed = 'radar blur cabbage chef fix engine embark joy scheme fiction master release'
+ const secondAcct = '0xac39b311dceb2a4b2f5d8461c1cdaf756f4f7ae9'
+
+ idStore.recoverFromSeed(password, secondSeed, (err) => {
+
+ let accounts = idStore._getAddresses()
+ assert.equal(accounts[0], secondAcct)
+ done()
+ })
})
})
})