diff options
author | kumavis <aaron@kumavis.me> | 2017-02-01 12:02:38 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-02-01 12:02:38 +0800 |
commit | c0d3db6a8ce2fe0522fa4e3cba1e01d10469280f (patch) | |
tree | 252d5235f19bd10800150bae2af4663249226628 /test | |
parent | 82578538198de74955d7bc5cfd3c9a02d1b69a6d (diff) | |
download | tangerine-wallet-browser-c0d3db6a8ce2fe0522fa4e3cba1e01d10469280f.tar.gz tangerine-wallet-browser-c0d3db6a8ce2fe0522fa4e3cba1e01d10469280f.tar.zst tangerine-wallet-browser-c0d3db6a8ce2fe0522fa4e3cba1e01d10469280f.zip |
keyring - synchronous getState
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/idStore-migration-test.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/test/unit/idStore-migration-test.js b/test/unit/idStore-migration-test.js index 3aaf4bb94..1537e88ec 100644 --- a/test/unit/idStore-migration-test.js +++ b/test/unit/idStore-migration-test.js @@ -83,15 +83,10 @@ 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) - }) + const state = keyringController.getState() + assert(state.isInitialized, 'old vault counted as initialized.') + assert(!state.lostAccounts, 'no lost accounts') + done() }) }) }) |