Commit 9f507ee4 by Francisco Giordano

fix use of test-helpers balance

parent e159856b
...@@ -26,15 +26,15 @@ contract('GSNRecipient', function ([_, payee]) { ...@@ -26,15 +26,15 @@ contract('GSNRecipient', function ([_, payee]) {
}); });
it('funds can be withdrawn', async function () { it('funds can be withdrawn', async function () {
expect(await balance.difference(payee, () => const balanceTracker = await balance.tracker(payee);
this.recipient.withdrawDeposits(amount, payee)) await this.recipient.withdrawDeposits(amount, payee);
).to.be.bignumber.equal(amount); expect(await balanceTracker.delta()).to.be.bignumber.equal(amount);
}); });
it('partial funds can be withdrawn', async function () { it('partial funds can be withdrawn', async function () {
expect(await balance.difference(payee, async () => const balanceTracker = await balance.tracker(payee);
this.recipient.withdrawDeposits(amount.divn(2), payee)) await this.recipient.withdrawDeposits(amount.divn(2), payee);
).to.be.bignumber.equal(amount.divn(2)); expect(await balanceTracker.delta()).to.be.bignumber.equal(amount.divn(2));
}); });
it('reverts on overwithdrawals', async function () { it('reverts on overwithdrawals', async function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment