aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-01-03 09:49:04 +0800
committerGitHub <noreply@github.com>2017-01-03 09:49:04 +0800
commitfe61fcb0fcbee05724b77f9729660c9f692a0cb1 (patch)
treee81657c2671e25fbbba9e9bc3a62828269c38da5 /test/unit
parent305cda4265e84d520d21c473a796e8f71febc57f (diff)
parentb93cdd428b5013787f78a266bcb5ca84d26b9941 (diff)
downloadtangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.gz
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.bz2
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.lz
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.xz
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.tar.zst
tangerine-wallet-browser-fe61fcb0fcbee05724b77f9729660c9f692a0cb1.zip
Merge branch 'dev' into i897-ReplayProtection
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/idStore-migration-test.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/unit/idStore-migration-test.js b/test/unit/idStore-migration-test.js
index 7e91616bf..54f38fb2f 100644
--- a/test/unit/idStore-migration-test.js
+++ b/test/unit/idStore-migration-test.js
@@ -83,11 +83,14 @@ describe('IdentityStore to KeyringController migration', function() {
})
describe('entering a password', function() {
- it('should identify an old wallet as an initialized keyring', function() {
+ it('should identify an old wallet as an initialized keyring', function(done) {
keyringController.configManager.setWallet('something')
- const state = keyringController.getState()
- assert(state.isInitialized, 'old vault counted as initialized.')
- assert(!state.lostAccounts, 'no lost accounts')
+ keyringController.getState()
+ .then((state) => {
+ assert(state.isInitialized, 'old vault counted as initialized.')
+ assert(!state.lostAccounts, 'no lost accounts')
+ done()
+ })
})
})
})