1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Fix tests add logs

This commit is contained in:
Dan Finlay 2017-05-11 14:29:44 -07:00
parent e9b11a430b
commit 113f7d67f1

View File

@ -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()
})