aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-03-26 06:38:20 +0800
committerDan Finlay <dan@danfinlay.com>2016-03-26 06:38:20 +0800
commit72904e7a4f2e33a38d78bc83cc245b4e536b1400 (patch)
tree8915abc21ab2f704a06bf900d7afea4a612e9a12
parentf05ad130c5de29f5d1e0188e109112e608aa82bb (diff)
downloadtangerine-wallet-browser-72904e7a4f2e33a38d78bc83cc245b4e536b1400.tar
tangerine-wallet-browser-72904e7a4f2e33a38d78bc83cc245b4e536b1400.tar.gz
tangerine-wallet-browser-72904e7a4f2e33a38d78bc83cc245b4e536b1400.tar.bz2
tangerine-wallet-browser-72904e7a4f2e33a38d78bc83cc245b4e536b1400.tar.lz
tangerine-wallet-browser-72904e7a4f2e33a38d78bc83cc245b4e536b1400.tar.xz
tangerine-wallet-browser-72904e7a4f2e33a38d78bc83cc245b4e536b1400.tar.zst
tangerine-wallet-browser-72904e7a4f2e33a38d78bc83cc245b4e536b1400.zip
Correct the bip44 test account
-rw-r--r--test/unit/idStore-test.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/idStore-test.js b/test/unit/idStore-test.js
index 4494bf505..d3fabfe9d 100644
--- a/test/unit/idStore-test.js
+++ b/test/unit/idStore-test.js
@@ -26,13 +26,13 @@ describe('IdentityStore', function() {
})
describe('#recoverFromSeed', function() {
+ let newAccounts = []
before(function() {
window.localStorage = {} // Hacking localStorage support into JSDom
- accounts = []
idStore = new IdentityStore({
- addAccount(acct) { accounts.push(acct) },
+ addAccount(acct) { newAccounts.push(acct) },
})
})
@@ -42,7 +42,7 @@ describe('IdentityStore', function() {
assert.ifError(err)
let newKeystore = idStore._idmgmt.keyStore
- assert.equal(newKeystore, originalKeystore)
+ assert.equal(newAccounts[0], accounts[0])
done()
})
})
@@ -51,7 +51,8 @@ describe('IdentityStore', function() {
describe('#recoverFromSeed BIP44 compliance', function() {
let seedWords = 'picnic injury awful upper eagle junk alert toss flower renew silly vague'
- let firstAccount = '0xaceef0221414801dde7f732196b1c9d8ea60b637'
+ let firstAccount = '0x5d8de92c205279c10e5669f797b853ccef4f739a'
+
let password = 'secret!'
let accounts = []
let idStore
@@ -61,7 +62,6 @@ describe('IdentityStore', function() {
idStore = new IdentityStore({
addAccount(acct) {
- console.log(`pushing account ${acct}`)
accounts.push(acct)
},
})