1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 09:23:21 +01:00

Improve vault migration unit test

This commit is contained in:
Dan Finlay 2016-11-22 16:05:37 -08:00
parent 4b7b0a86d8
commit 607a474c3f

View File

@ -83,9 +83,10 @@ describe('KeyringController', 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)
.then(() => {
assert(Boolean(localStorage['vault']))
done()
})
.catch((reason) => {