|
|
@ -79,11 +79,14 @@ describe('IdentityStore to KeyringController migration', function() { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
describe('entering a password', 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') |
|
|
|
keyringController.configManager.setWallet('something') |
|
|
|
const state = keyringController.getState() |
|
|
|
keyringController.getState() |
|
|
|
assert(state.isInitialized, 'old vault counted as initialized.') |
|
|
|
.then((state) => { |
|
|
|
assert(!state.lostAccounts, 'no lost accounts') |
|
|
|
assert(state.isInitialized, 'old vault counted as initialized.') |
|
|
|
|
|
|
|
assert(!state.lostAccounts, 'no lost accounts') |
|
|
|
|
|
|
|
done() |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|