diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-09-08 03:47:27 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-09-08 03:47:27 +0800 |
commit | a95a3c7e4f4d1331394a7bf92a77678fe8087c04 (patch) | |
tree | c0826217b4e49590512ad4e21b574accb308fdbe | |
parent | 74c6de7d23c979c091028d8bd599f389e2090bc1 (diff) | |
download | tangerine-wallet-browser-a95a3c7e4f4d1331394a7bf92a77678fe8087c04.tar tangerine-wallet-browser-a95a3c7e4f4d1331394a7bf92a77678fe8087c04.tar.gz tangerine-wallet-browser-a95a3c7e4f4d1331394a7bf92a77678fe8087c04.tar.bz2 tangerine-wallet-browser-a95a3c7e4f4d1331394a7bf92a77678fe8087c04.tar.lz tangerine-wallet-browser-a95a3c7e4f4d1331394a7bf92a77678fe8087c04.tar.xz tangerine-wallet-browser-a95a3c7e4f4d1331394a7bf92a77678fe8087c04.tar.zst tangerine-wallet-browser-a95a3c7e4f4d1331394a7bf92a77678fe8087c04.zip |
Fix balance calc test
-rw-r--r-- | app/scripts/lib/pending-balance-calculator.js | 2 | ||||
-rw-r--r-- | test/unit/pending-balance-test.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/lib/pending-balance-calculator.js b/app/scripts/lib/pending-balance-calculator.js index d5e2e4c17..4e1189a65 100644 --- a/app/scripts/lib/pending-balance-calculator.js +++ b/app/scripts/lib/pending-balance-calculator.js @@ -25,6 +25,8 @@ class PendingBalanceCalculator { const pending = results[1] console.dir(pending) + console.dir(balance.toString()) + console.trace('but why') const pendingValue = pending.reduce((total, tx) => { return total.add(this.valueFor(tx)) diff --git a/test/unit/pending-balance-test.js b/test/unit/pending-balance-test.js index 0937579e2..a9b0f7b66 100644 --- a/test/unit/pending-balance-test.js +++ b/test/unit/pending-balance-test.js @@ -32,7 +32,7 @@ describe('PendingBalanceCalculator', function () { describe('if you have no pending txs and one ether', function () { beforeEach(function () { - balanceCalculator = generateBalanceCalcWith([], zeroBn) + balanceCalculator = generateBalanceCalcWith([], etherBn) }) it('returns the network balance', async function () { |