1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
This commit is contained in:
frankiebee 2017-08-03 22:02:31 -04:00
parent 7de58c8709
commit a8966c4a4f

View File

@ -45,11 +45,16 @@ describe('tx confirmation screen', function () {
before(function (done) { before(function (done) {
actions._setBackgroundConnection({ actions._setBackgroundConnection({
approveTransaction (txId, cb) { cb('An error!') }, approveTransaction (txId, cb) { cb('An error!') },
cancelTransaction (txId) { /* noop */ }, cancelTransaction (txId, cb) { cb() },
clearSeedWordCache (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) result = reducers(initialState, action)
done() done()
}) })