diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-09-27 02:46:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-27 02:46:28 +0800 |
commit | b1daa5ae260be0aa91516bde0cbdb8820099587b (patch) | |
tree | 21814a5909ee4988178378d54501a4bc9a6081a7 /test/unit/components | |
parent | d135c3c9ca1dcbb25fae9ab39d92e923115ae2a1 (diff) | |
parent | 9e3648c668aed1f3e632efe1693d6a2e0aa76617 (diff) | |
download | tangerine-wallet-browser-b1daa5ae260be0aa91516bde0cbdb8820099587b.tar tangerine-wallet-browser-b1daa5ae260be0aa91516bde0cbdb8820099587b.tar.gz tangerine-wallet-browser-b1daa5ae260be0aa91516bde0cbdb8820099587b.tar.bz2 tangerine-wallet-browser-b1daa5ae260be0aa91516bde0cbdb8820099587b.tar.lz tangerine-wallet-browser-b1daa5ae260be0aa91516bde0cbdb8820099587b.tar.xz tangerine-wallet-browser-b1daa5ae260be0aa91516bde0cbdb8820099587b.tar.zst tangerine-wallet-browser-b1daa5ae260be0aa91516bde0cbdb8820099587b.zip |
Merge pull request #2094 from MetaMask/AddBalanceController
Calculate balance based on pending txs
Diffstat (limited to 'test/unit/components')
-rw-r--r-- | test/unit/components/pending-tx-test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/components/pending-tx-test.js b/test/unit/components/pending-tx-test.js index 22a98bc93..fdade1042 100644 --- a/test/unit/components/pending-tx-test.js +++ b/test/unit/components/pending-tx-test.js @@ -34,10 +34,15 @@ describe('PendingTx', function () { const renderer = ReactTestUtils.createRenderer() const newGasPrice = '0x77359400' + const computedBalances = {} + computedBalances[Object.keys(identities)[0]] = { + ethBalance: '0x00000000000000056bc75e2d63100000', + } const props = { identities, accounts: identities, txData, + computedBalances, sendTransaction: (txMeta, event) => { // Assert changes: const result = ethUtil.addHexPrefix(txMeta.txParams.gasPrice) |