aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-05-25 01:51:44 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-05-25 01:51:44 +0800
commit5e19a4a8332703aa3467470073411ad9cccca52a (patch)
tree5ebc7b805c959e9937be074f1b8aae6941875018 /test
parent10ca3b6467af2bea723e661160ba5cf2a41ab3b0 (diff)
downloadtangerine-wallet-browser-5e19a4a8332703aa3467470073411ad9cccca52a.tar
tangerine-wallet-browser-5e19a4a8332703aa3467470073411ad9cccca52a.tar.gz
tangerine-wallet-browser-5e19a4a8332703aa3467470073411ad9cccca52a.tar.bz2
tangerine-wallet-browser-5e19a4a8332703aa3467470073411ad9cccca52a.tar.lz
tangerine-wallet-browser-5e19a4a8332703aa3467470073411ad9cccca52a.tar.xz
tangerine-wallet-browser-5e19a4a8332703aa3467470073411ad9cccca52a.tar.zst
tangerine-wallet-browser-5e19a4a8332703aa3467470073411ad9cccca52a.zip
Modfiy test to ether standards.
Diffstat (limited to 'test')
-rw-r--r--test/unit/components/bn-as-decimal-input-test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/components/bn-as-decimal-input-test.js b/test/unit/components/bn-as-decimal-input-test.js
index 6fe684dc5..b3365b6f9 100644
--- a/test/unit/components/bn-as-decimal-input-test.js
+++ b/test/unit/components/bn-as-decimal-input-test.js
@@ -13,7 +13,7 @@ describe('BnInput', function () {
const renderer = ReactTestUtils.createRenderer()
let valueStr = '20'
- while (valueStr.length < 15) {
+ while (valueStr.length < 20) {
valueStr += '0'
}
const value = new BN(valueStr, 10)
@@ -21,13 +21,13 @@ describe('BnInput', function () {
let inputStr = '2.3'
let targetStr = '23'
- while (targetStr.length < 14) {
+ while (targetStr.length < 19) {
targetStr += '0'
}
const target = new BN(targetStr, 10)
- const precision = 13 // ether precision
- const scale = 13
+ const precision = 18 // ether precision
+ const scale = 18
const props = {
value,