1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove extraneous console output from TransactionStateManager tests (#7838)

This commit is contained in:
Whymarrh Whitby 2020-01-16 13:02:02 -03:30 committed by Thomas Huang
parent 48c9b0174f
commit 4257858fb5

View File

@ -56,10 +56,7 @@ describe('TransactionStateManager', function () {
it('should emit a rejected event to signal the exciton of callback', (done) => {
const tx = { id: 1, status: 'unapproved', metamaskNetworkId: currentNetworkId, txParams: {} }
txStateManager.addTx(tx)
const noop = function (err) {
if (err) {
console.log('Error: ', err)
}
const noop = () => {
assert(true, 'event listener has been triggered and noop executed')
done()
}