diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-11-23 08:05:37 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-11-23 08:05:37 +0800 |
commit | 607a474c3fef10aa6a50b27015263d874d25aa69 (patch) | |
tree | faa4be91bdb790f72cae52169a3143ccca415a82 /test | |
parent | 4b7b0a86d8e9688bd8a512342b99c76dc1810486 (diff) | |
download | tangerine-wallet-browser-607a474c3fef10aa6a50b27015263d874d25aa69.tar tangerine-wallet-browser-607a474c3fef10aa6a50b27015263d874d25aa69.tar.gz tangerine-wallet-browser-607a474c3fef10aa6a50b27015263d874d25aa69.tar.bz2 tangerine-wallet-browser-607a474c3fef10aa6a50b27015263d874d25aa69.tar.lz tangerine-wallet-browser-607a474c3fef10aa6a50b27015263d874d25aa69.tar.xz tangerine-wallet-browser-607a474c3fef10aa6a50b27015263d874d25aa69.tar.zst tangerine-wallet-browser-607a474c3fef10aa6a50b27015263d874d25aa69.zip |
Improve vault migration unit test
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/keyring-controller-test.js | 3 |
1 files changed, 2 insertions, 1 deletions
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) => { |