aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-17 07:49:59 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-17 07:50:03 +0800
commitc1bef31d9d3b2cf091ac94c908700c3c0081318f (patch)
tree3c18cc19b1dfef80ddde9144dbd20d14f3c42f80 /test
parentcfb7bfed186a03e4e879d932501a51a9758dd3ad (diff)
downloadtangerine-wallet-browser-c1bef31d9d3b2cf091ac94c908700c3c0081318f.tar
tangerine-wallet-browser-c1bef31d9d3b2cf091ac94c908700c3c0081318f.tar.gz
tangerine-wallet-browser-c1bef31d9d3b2cf091ac94c908700c3c0081318f.tar.bz2
tangerine-wallet-browser-c1bef31d9d3b2cf091ac94c908700c3c0081318f.tar.lz
tangerine-wallet-browser-c1bef31d9d3b2cf091ac94c908700c3c0081318f.tar.xz
tangerine-wallet-browser-c1bef31d9d3b2cf091ac94c908700c3c0081318f.tar.zst
tangerine-wallet-browser-c1bef31d9d3b2cf091ac94c908700c3c0081318f.zip
Linted
Diffstat (limited to 'test')
-rw-r--r--test/unit/components/pending-tx-test.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/unit/components/pending-tx-test.js b/test/unit/components/pending-tx-test.js
index 89e6892a3..9ff948604 100644
--- a/test/unit/components/pending-tx-test.js
+++ b/test/unit/components/pending-tx-test.js
@@ -54,7 +54,6 @@ describe('PendingTx', function () {
const component = additions.renderIntoDocument(pendingTxComponent)
renderer.render(pendingTxComponent)
const result = renderer.getRenderOutput()
- const form = result.props.children
assert.equal(result.type, 'div', 'should create a div')
try {
@@ -63,10 +62,10 @@ describe('PendingTx', function () {
target: {
value: 2,
checkValidity() { return true },
- }
+ },
})
- let form = additions.find(component, 'form')[0]
+ const form = additions.find(component, 'form')[0]
form.checkValidity = () => true
form.getFormEl = () => { return { checkValidity() { return true } } }
ReactTestUtils.Simulate.submit(form, { preventDefault() {}, target: { checkValidity() {