aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-12 05:29:44 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-12 05:29:44 +0800
commit113f7d67f1973d1468b95517895701af8ca16f95 (patch)
treeb4bbc771e84d275125c55576253a7fb9ec257dce /test/unit
parente9b11a430b8f447e9c6f21c1b639d150976f98cf (diff)
downloadtangerine-wallet-browser-113f7d67f1973d1468b95517895701af8ca16f95.tar
tangerine-wallet-browser-113f7d67f1973d1468b95517895701af8ca16f95.tar.gz
tangerine-wallet-browser-113f7d67f1973d1468b95517895701af8ca16f95.tar.bz2
tangerine-wallet-browser-113f7d67f1973d1468b95517895701af8ca16f95.tar.lz
tangerine-wallet-browser-113f7d67f1973d1468b95517895701af8ca16f95.tar.xz
tangerine-wallet-browser-113f7d67f1973d1468b95517895701af8ca16f95.tar.zst
tangerine-wallet-browser-113f7d67f1973d1468b95517895701af8ca16f95.zip
Fix tests add logs
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/components/pending-tx-test.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/unit/components/pending-tx-test.js b/test/unit/components/pending-tx-test.js
index e0f02a5bb..3e26fc6f5 100644
--- a/test/unit/components/pending-tx-test.js
+++ b/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()
})