Lint and unit test fixes.

feature/default_network_editable
Dan Miller 6 years ago
parent 6f8e2b1ad9
commit 6dd1028c71
  1. 6
      ui/app/components/gas-customization/gas-modal-page-container/tests/gas-modal-page-container-component.test.js
  2. 2
      ui/app/components/send/tests/send-container.test.js
  3. 1
      ui/app/helpers/conversions.util.js

@ -229,9 +229,9 @@ describe('GasModalPageContainer Component', function () {
assert(renderedInfoRows.at(2).hasClass(`${baseClassName}__total-info`))
assert(renderedInfoRows.at(3).hasClass(`${baseClassName}__fiat-total-info`))
assert.equal(renderedInfoRows.at(0).text(), 'Send Amount mockSendAmount')
assert.equal(renderedInfoRows.at(1).text(), 'Transaction Fee mockTransactionFee')
assert.equal(renderedInfoRows.at(2).text(), 'New Total mockNewTotalEth')
assert.equal(renderedInfoRows.at(0).text(), 'sendAmount mockSendAmount')
assert.equal(renderedInfoRows.at(1).text(), 'transactionFee mockTransactionFee')
assert.equal(renderedInfoRows.at(2).text(), 'newTotal mockNewTotalEth')
assert.equal(renderedInfoRows.at(3).text(), 'mockNewTotalFiat')
})
})

@ -125,7 +125,7 @@ describe('send container', () => {
assert(dispatchSpy.calledOnce)
assert.deepEqual(
actionSpies.updateGasData.getCall(0).args[0],
{ gasPrice, selectedAddress, selectedToken, recentBlocks, blockGasLimit, to, value, }
{ gasPrice, selectedAddress, selectedToken, recentBlocks, blockGasLimit, to, value, data }
)
})
})

@ -1,5 +1,4 @@
import ethUtil from 'ethereumjs-util'
import { conversionUtil } from '../conversion-util'
import { ETH, GWEI, WEI } from '../constants/common'
import { conversionUtil, addCurrencies } from '../conversion-util'

Loading…
Cancel
Save