diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-08-04 10:02:31 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-08-04 10:02:31 +0800 |
commit | a8966c4a4fa03ba717ddf09c8b8cd6a19d97dfe3 (patch) | |
tree | 36aed8b90468bbcd8f4a136d80a09b6e4e8c9dde /test/unit/actions/tx_test.js | |
parent | 7de58c8709dd78e7088210e2c6bc5df79e008538 (diff) | |
download | tangerine-wallet-browser-a8966c4a4fa03ba717ddf09c8b8cd6a19d97dfe3.tar tangerine-wallet-browser-a8966c4a4fa03ba717ddf09c8b8cd6a19d97dfe3.tar.gz tangerine-wallet-browser-a8966c4a4fa03ba717ddf09c8b8cd6a19d97dfe3.tar.bz2 tangerine-wallet-browser-a8966c4a4fa03ba717ddf09c8b8cd6a19d97dfe3.tar.lz tangerine-wallet-browser-a8966c4a4fa03ba717ddf09c8b8cd6a19d97dfe3.tar.xz tangerine-wallet-browser-a8966c4a4fa03ba717ddf09c8b8cd6a19d97dfe3.tar.zst tangerine-wallet-browser-a8966c4a4fa03ba717ddf09c8b8cd6a19d97dfe3.zip |
fix test
Diffstat (limited to 'test/unit/actions/tx_test.js')
-rw-r--r-- | test/unit/actions/tx_test.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/unit/actions/tx_test.js b/test/unit/actions/tx_test.js index 0ea1bfdc7..4561082fd 100644 --- a/test/unit/actions/tx_test.js +++ b/test/unit/actions/tx_test.js @@ -45,11 +45,16 @@ 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() }, }) + // var dispatchExpect = sinon.mock() + // dispatchExpect.once() - const action = actions.cancelTx({value: firstTxId}) + let action + actions.cancelTx({value: firstTxId})((dispatchAction) => { + action = dispatchAction + }) result = reducers(initialState, action) done() }) |