aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2017-02-02 05:05:58 +0800
committerGitHub <noreply@github.com>2017-02-02 05:05:58 +0800
commit54b1339f6a2a8a66a01ac224c6dbb569911cfc9a (patch)
tree675d11564292df8871ceea4b3e4a883b0ed2da57 /test
parentce0c3ed03c20eb0b7438cb9add7cbce490d7de64 (diff)
parent25c5a4462369f5209924a99cbe0395da13a6a0a7 (diff)
downloadtangerine-wallet-browser-54b1339f6a2a8a66a01ac224c6dbb569911cfc9a.tar
tangerine-wallet-browser-54b1339f6a2a8a66a01ac224c6dbb569911cfc9a.tar.gz
tangerine-wallet-browser-54b1339f6a2a8a66a01ac224c6dbb569911cfc9a.tar.bz2
tangerine-wallet-browser-54b1339f6a2a8a66a01ac224c6dbb569911cfc9a.tar.lz
tangerine-wallet-browser-54b1339f6a2a8a66a01ac224c6dbb569911cfc9a.tar.xz
tangerine-wallet-browser-54b1339f6a2a8a66a01ac224c6dbb569911cfc9a.tar.zst
tangerine-wallet-browser-54b1339f6a2a8a66a01ac224c6dbb569911cfc9a.zip
Merge branch 'dev' into messageManagerCleanUp
Diffstat (limited to 'test')
-rw-r--r--test/unit/idStore-migration-test.js14
-rw-r--r--test/unit/keyring-controller-test.js6
2 files changed, 4 insertions, 16 deletions
diff --git a/test/unit/idStore-migration-test.js b/test/unit/idStore-migration-test.js
index 3aaf4bb94..81a99ef63 100644
--- a/test/unit/idStore-migration-test.js
+++ b/test/unit/idStore-migration-test.js
@@ -80,18 +80,4 @@ describe('IdentityStore to KeyringController migration', function() {
})
})
- describe('entering a password', function() {
- it('should identify an old wallet as an initialized keyring', function(done) {
- keyringController.configManager.setWallet('something')
- keyringController.getState()
- .then((state) => {
- assert(state.isInitialized, 'old vault counted as initialized.')
- assert(!state.lostAccounts, 'no lost accounts')
- done()
- })
- .catch((err) => {
- done(err)
- })
- })
- })
})
diff --git a/test/unit/keyring-controller-test.js b/test/unit/keyring-controller-test.js
index 347aa2bdf..aae4cdfd6 100644
--- a/test/unit/keyring-controller-test.js
+++ b/test/unit/keyring-controller-test.js
@@ -104,7 +104,7 @@ describe('KeyringController', function() {
it('should add the address to the identities hash', function() {
const fakeAddress = '0x12345678'
keyringController.createNickname(fakeAddress)
- const identities = keyringController.identities
+ const identities = keyringController.memStore.getState().identities
const identity = identities[fakeAddress]
assert.equal(identity.address, fakeAddress)
})
@@ -114,7 +114,9 @@ describe('KeyringController', function() {
it ('sets the nickname', function(done) {
const account = addresses[0]
var nick = 'Test nickname'
- keyringController.identities[ethUtil.addHexPrefix(account)] = {}
+ const identities = keyringController.memStore.getState().identities
+ identities[ethUtil.addHexPrefix(account)] = {}
+ keyringController.memStore.updateState({ identities })
keyringController.saveAccountLabel(account, nick)
.then((label) => {
try {