diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-01-04 01:28:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-04 01:28:53 +0800 |
commit | b13c54682b75aaceba1ef37a4d97669f57e448a9 (patch) | |
tree | e81657c2671e25fbbba9e9bc3a62828269c38da5 /test/unit | |
parent | fa3e708f34fce523601c39b3131bdbe858d2f85f (diff) | |
parent | fe61fcb0fcbee05724b77f9729660c9f692a0cb1 (diff) | |
download | tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.gz tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.bz2 tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.lz tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.xz tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.zst tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.zip |
Merge pull request #958 from MetaMask/i897-ReplayProtection
Add replay protection
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/idStore-migration-test.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/unit/idStore-migration-test.js b/test/unit/idStore-migration-test.js index 7e91616bf..54f38fb2f 100644 --- a/test/unit/idStore-migration-test.js +++ b/test/unit/idStore-migration-test.js @@ -83,11 +83,14 @@ describe('IdentityStore to KeyringController migration', function() { }) describe('entering a password', function() { - it('should identify an old wallet as an initialized keyring', function() { + it('should identify an old wallet as an initialized keyring', function(done) { keyringController.configManager.setWallet('something') - const state = keyringController.getState() - assert(state.isInitialized, 'old vault counted as initialized.') - assert(!state.lostAccounts, 'no lost accounts') + keyringController.getState() + .then((state) => { + assert(state.isInitialized, 'old vault counted as initialized.') + assert(!state.lostAccounts, 'no lost accounts') + done() + }) }) }) }) |