mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix balance calc test
This commit is contained in:
parent
74c6de7d23
commit
a95a3c7e4f
@ -25,6 +25,8 @@ class PendingBalanceCalculator {
|
|||||||
const pending = results[1]
|
const pending = results[1]
|
||||||
|
|
||||||
console.dir(pending)
|
console.dir(pending)
|
||||||
|
console.dir(balance.toString())
|
||||||
|
console.trace('but why')
|
||||||
|
|
||||||
const pendingValue = pending.reduce((total, tx) => {
|
const pendingValue = pending.reduce((total, tx) => {
|
||||||
return total.add(this.valueFor(tx))
|
return total.add(this.valueFor(tx))
|
||||||
|
@ -32,7 +32,7 @@ describe('PendingBalanceCalculator', function () {
|
|||||||
describe('if you have no pending txs and one ether', function () {
|
describe('if you have no pending txs and one ether', function () {
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
balanceCalculator = generateBalanceCalcWith([], zeroBn)
|
balanceCalculator = generateBalanceCalcWith([], etherBn)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('returns the network balance', async function () {
|
it('returns the network balance', async function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user