aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-17 15:34:56 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-17 15:35:26 +0800
commitbfb1c92ded2bef1a2f08e1c185721010278ca69b (patch)
tree6bcce2990aa70989eefb9df047ee1ff1c506a9b7 /test
parent6f02f5bc5d741810edb2c011fc3095ee50f84bf9 (diff)
downloadtangerine-wallet-browser-bfb1c92ded2bef1a2f08e1c185721010278ca69b.tar
tangerine-wallet-browser-bfb1c92ded2bef1a2f08e1c185721010278ca69b.tar.gz
tangerine-wallet-browser-bfb1c92ded2bef1a2f08e1c185721010278ca69b.tar.bz2
tangerine-wallet-browser-bfb1c92ded2bef1a2f08e1c185721010278ca69b.tar.lz
tangerine-wallet-browser-bfb1c92ded2bef1a2f08e1c185721010278ca69b.tar.xz
tangerine-wallet-browser-bfb1c92ded2bef1a2f08e1c185721010278ca69b.tar.zst
tangerine-wallet-browser-bfb1c92ded2bef1a2f08e1c185721010278ca69b.zip
Linted test
Diffstat (limited to 'test')
-rw-r--r--test/unit/components/bn-as-decimal-input-test.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/unit/components/bn-as-decimal-input-test.js b/test/unit/components/bn-as-decimal-input-test.js
index 502c9a2de..034bc3e18 100644
--- a/test/unit/components/bn-as-decimal-input-test.js
+++ b/test/unit/components/bn-as-decimal-input-test.js
@@ -9,11 +9,9 @@ const BN = ethUtil.BN
var BnInput = require('../../../ui/app/components/bn-as-decimal-input')
describe('BnInput', function () {
- let bnInput
-
it('can tolerate a gas decimal number at a high precision', function (done) {
- const renderer = ReactTestUtils.createRenderer();
+ const renderer = ReactTestUtils.createRenderer()
let valueStr = '20'
while (valueStr.length < 20) {
@@ -35,9 +33,9 @@ describe('BnInput', function () {
value,
precision,
onChange: (newBn) => {
- assert.equal(newBn.toString(), targetValue.toString(), 'should tolerate increase')
+ assert.equal(newBn.toString(), target.toString(), 'should tolerate increase')
done()
- }
+ },
}
const inputComponent = h(BnInput, props)
@@ -46,7 +44,7 @@ describe('BnInput', function () {
const input = additions.find(component, 'input.hex-input')[0]
ReactTestUtils.Simulate.change(input, { preventDefault() {}, target: {
value: inputStr,
- checkValidity() {return true} },
+ checkValidity() { return true } },
})
})
})