diff options
Diffstat (limited to 'test/unit/ui/app/actions.spec.js')
-rw-r--r-- | test/unit/ui/app/actions.spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/ui/app/actions.spec.js b/test/unit/ui/app/actions.spec.js index c7ac8b6cf..8d7de8b02 100644 --- a/test/unit/ui/app/actions.spec.js +++ b/test/unit/ui/app/actions.spec.js @@ -198,7 +198,7 @@ describe('Actions', () => { createNewVaultAndRestoreSpy = sinon.spy(background, 'createNewVaultAndRestore') clearSeedWordCacheSpy = sinon.spy(background, 'clearSeedWordCache') return store.dispatch(actions.createNewVaultAndRestore()) - .then(() => { + .catch(() => { assert(clearSeedWordCacheSpy.calledOnce) assert(createNewVaultAndRestoreSpy.calledOnce) }) @@ -218,7 +218,7 @@ describe('Actions', () => { }) return store.dispatch(actions.createNewVaultAndRestore()) - .then(() => { + .catch(() => { assert.deepEqual(store.getActions(), expectedActions) }) }) @@ -240,7 +240,7 @@ describe('Actions', () => { }) return store.dispatch(actions.createNewVaultAndRestore()) - .then(() => { + .catch(() => { assert.deepEqual(store.getActions(), expectedActions) }) }) |