|
|
@ -83,9 +83,10 @@ describe('KeyringController', function() { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
describe('#migrateOldVaultIfAny', function() { |
|
|
|
describe('#migrateOldVaultIfAny', function() { |
|
|
|
it('should return the key for that password', function(done) { |
|
|
|
it('should return and init a new vault', function(done) { |
|
|
|
keyringController.migrateOldVaultIfAny(password) |
|
|
|
keyringController.migrateOldVaultIfAny(password) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
|
|
|
|
assert(Boolean(localStorage['vault'])) |
|
|
|
done() |
|
|
|
done() |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((reason) => { |
|
|
|
.catch((reason) => { |
|
|
|