aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-08-04 11:56:53 +0800
committerGitHub <noreply@github.com>2017-08-04 11:56:53 +0800
commitd526f68c8e7d613ad79ec9383d6709651e5af77e (patch)
treea4c46611e9c7d6a423d05b3a5c83cea16e437f13 /test/unit
parentefb7543c6dba8a0a37044c1799a9aa906425ebd6 (diff)
downloadtangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.tar.gz
tangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.tar.zst
tangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.zip
test - actions - tx - fix async test
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/actions/tx_test.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/unit/actions/tx_test.js b/test/unit/actions/tx_test.js
index 267cfee97..67c72e9a5 100644
--- a/test/unit/actions/tx_test.js
+++ b/test/unit/actions/tx_test.js
@@ -49,12 +49,11 @@ describe('tx confirmation screen', function () {
clearSeedWordCache (cb) { cb() },
})
- let action
- actions.cancelTx({value: firstTxId})((dispatchAction) => {
- action = dispatchAction
+ actions.cancelTx({value: firstTxId})((action) => {
+ result = reducers(initialState, action)
+ done()
})
- result = reducers(initialState, action)
- done()
+
})
it('should transition to the account detail view', function () {