diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-08-04 11:56:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-04 11:56:53 +0800 |
commit | d526f68c8e7d613ad79ec9383d6709651e5af77e (patch) | |
tree | a4c46611e9c7d6a423d05b3a5c83cea16e437f13 | |
parent | efb7543c6dba8a0a37044c1799a9aa906425ebd6 (diff) | |
download | tangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.tar tangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.tar.gz tangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.tar.bz2 tangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.tar.lz tangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.tar.xz tangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.tar.zst tangerine-wallet-browser-d526f68c8e7d613ad79ec9383d6709651e5af77e.zip |
test - actions - tx - fix async test
-rw-r--r-- | test/unit/actions/tx_test.js | 9 |
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 () { |