A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/app/pages/confirm-transaction-base/tests/confirm-transaction-base.co...

20 lines
1001 B

import assert from 'assert'
import { mapDispatchToProps } from '../confirm-transaction-base.container'
describe('Confirm Transaction Base Container', () => {
it('should map dispatch to props correctly', () => {
const props = mapDispatchToProps(() => 'mockDispatch')
assert.ok(typeof props.updateCustomNonce === 'function')
assert.ok(typeof props.clearConfirmTransaction === 'function')
assert.ok(typeof props.clearSend === 'function')
assert.ok(typeof props.showTransactionConfirmedModal === 'function')
assert.ok(typeof props.showCustomizeGasModal === 'function')
assert.ok(typeof props.updateGasAndCalculate === 'function')
assert.ok(typeof props.showRejectTransactionsConfirmationModal === 'function')
assert.ok(typeof props.cancelTransaction === 'function')
assert.ok(typeof props.cancelAllTransactions === 'function')
assert.ok(typeof props.sendTransaction === 'function')
assert.ok(typeof props.setMetaMetricsSendCount === 'function')
})
})