aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/actions
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-08-04 12:01:13 +0800
committerGitHub <noreply@github.com>2017-08-04 12:01:13 +0800
commitc4cb371ce8ddad10d575b4ddb6cb85fe4689ca59 (patch)
tree7dfa4391e05630d04b1903b69f9ca2fff43715c7 /test/unit/actions
parentfea03ad82ef7bdf2b903922ec8b4a50453974b71 (diff)
parentd526f68c8e7d613ad79ec9383d6709651e5af77e (diff)
downloadtangerine-wallet-browser-c4cb371ce8ddad10d575b4ddb6cb85fe4689ca59.tar.gz
tangerine-wallet-browser-c4cb371ce8ddad10d575b4ddb6cb85fe4689ca59.tar.zst
tangerine-wallet-browser-c4cb371ce8ddad10d575b4ddb6cb85fe4689ca59.zip
Merge pull request #1857 from MetaMask/hotFixCancleTx
fix cancelTransaction not receiving a callback
Diffstat (limited to 'test/unit/actions')
-rw-r--r--test/unit/actions/tx_test.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unit/actions/tx_test.js b/test/unit/actions/tx_test.js
index 0ea1bfdc7..67c72e9a5 100644
--- a/test/unit/actions/tx_test.js
+++ b/test/unit/actions/tx_test.js
@@ -45,13 +45,15 @@ describe('tx confirmation screen', function () {
before(function (done) {
actions._setBackgroundConnection({
approveTransaction (txId, cb) { cb('An error!') },
- cancelTransaction (txId) { /* noop */ },
+ cancelTransaction (txId, cb) { cb() },
clearSeedWordCache (cb) { cb() },
})
- const action = actions.cancelTx({value: firstTxId})
- result = reducers(initialState, action)
- done()
+ actions.cancelTx({value: firstTxId})((action) => {
+ result = reducers(initialState, action)
+ done()
+ })
+
})
it('should transition to the account detail view', function () {