Fix tests add logs

feature/default_network_editable
Dan Finlay 8 years ago
parent e9b11a430b
commit 113f7d67f1
  1. 10
      test/unit/components/pending-tx-test.js

@ -1,7 +1,7 @@
var assert = require('assert')
var PendingTx = require('../../../ui/app/components/pending-tx')
describe('PendingTx', function () {
describe.only('PendingTx', function () {
let pendingTxComponent
const identities = {
@ -44,17 +44,21 @@ describe('PendingTx', function () {
const noop = () => {}
pendingTxComponent.componentDidMount = () => {
setTimeout(() => {
console.log('component mounted')
const newGasPrice = '0x451456'
pendingTxComponent.gasPriceChanged(newGasPrice)
setTimeout(() => {
console.log('hitting submit')
pendingTxComponent.onSubmit({ preventDefault: noop })
}, 20)
}
}, 200)
console.log('calling render')
pendingTxComponent.props = props
pendingTxComponent.checkValidity = () => { return true }
pendingTxComponent.render()
})

Loading…
Cancel
Save