mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
fix test
This commit is contained in:
parent
7de58c8709
commit
a8966c4a4f
@ -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()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user