1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Lint and unit test fixes.

This commit is contained in:
Dan Miller 2018-10-10 20:36:14 -02:30
parent 6f8e2b1ad9
commit 6dd1028c71
3 changed files with 4 additions and 5 deletions

View File

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

View File

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

View File

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