mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
test - actions - tx - fix async test
This commit is contained in:
parent
efb7543c6d
commit
d526f68c8e
@ -49,14 +49,13 @@ describe('tx confirmation screen', function () {
|
|||||||
clearSeedWordCache (cb) { cb() },
|
clearSeedWordCache (cb) { cb() },
|
||||||
})
|
})
|
||||||
|
|
||||||
let action
|
actions.cancelTx({value: firstTxId})((action) => {
|
||||||
actions.cancelTx({value: firstTxId})((dispatchAction) => {
|
|
||||||
action = dispatchAction
|
|
||||||
})
|
|
||||||
result = reducers(initialState, action)
|
result = reducers(initialState, action)
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
it('should transition to the account detail view', function () {
|
it('should transition to the account detail view', function () {
|
||||||
assert.equal(result.appState.currentView.name, 'accountDetail')
|
assert.equal(result.appState.currentView.name, 'accountDetail')
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user