Modfiy test to ether standards.

feature/default_network_editable
Kevin Serrano 8 years ago
parent 10ca3b6467
commit 5e19a4a833
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 8
      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,

Loading…
Cancel
Save