mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix tests add logs
This commit is contained in:
parent
e9b11a430b
commit
113f7d67f1
@ -1,7 +1,7 @@
|
|||||||
var assert = require('assert')
|
var assert = require('assert')
|
||||||
var PendingTx = require('../../../ui/app/components/pending-tx')
|
var PendingTx = require('../../../ui/app/components/pending-tx')
|
||||||
|
|
||||||
describe('PendingTx', function () {
|
describe.only('PendingTx', function () {
|
||||||
let pendingTxComponent
|
let pendingTxComponent
|
||||||
|
|
||||||
const identities = {
|
const identities = {
|
||||||
@ -44,17 +44,21 @@ describe('PendingTx', function () {
|
|||||||
|
|
||||||
const noop = () => {}
|
const noop = () => {}
|
||||||
|
|
||||||
pendingTxComponent.componentDidMount = () => {
|
setTimeout(() => {
|
||||||
|
console.log('component mounted')
|
||||||
|
|
||||||
const newGasPrice = '0x451456'
|
const newGasPrice = '0x451456'
|
||||||
pendingTxComponent.gasPriceChanged(newGasPrice)
|
pendingTxComponent.gasPriceChanged(newGasPrice)
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
console.log('hitting submit')
|
||||||
pendingTxComponent.onSubmit({ preventDefault: noop })
|
pendingTxComponent.onSubmit({ preventDefault: noop })
|
||||||
}, 20)
|
}, 20)
|
||||||
}
|
}, 200)
|
||||||
|
|
||||||
|
console.log('calling render')
|
||||||
pendingTxComponent.props = props
|
pendingTxComponent.props = props
|
||||||
|
pendingTxComponent.checkValidity = () => { return true }
|
||||||
pendingTxComponent.render()
|
pendingTxComponent.render()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user