From 607a474c3fef10aa6a50b27015263d874d25aa69 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 22 Nov 2016 16:05:37 -0800 Subject: Improve vault migration unit test --- test/unit/keyring-controller-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/unit/keyring-controller-test.js') diff --git a/test/unit/keyring-controller-test.js b/test/unit/keyring-controller-test.js index c32141cc6..2d1064f40 100644 --- a/test/unit/keyring-controller-test.js +++ b/test/unit/keyring-controller-test.js @@ -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) => { -- cgit