mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Improve vault migration unit test
This commit is contained in:
parent
4b7b0a86d8
commit
607a474c3f
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user