mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Correct getState test to be async
This commit is contained in:
parent
c05e04c611
commit
5e8a344f97
@ -79,11 +79,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()
|
||||
keyringController.getState()
|
||||
.then((state) => {
|
||||
assert(state.isInitialized, 'old vault counted as initialized.')
|
||||
assert(!state.lostAccounts, 'no lost accounts')
|
||||
done()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user