From e99184b83f32bb24276a80754d67fd10006a6bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Thu, 25 Aug 2022 11:51:31 +0200 Subject: [PATCH] Make test complete, add FIXME note --- test/contracts/Contributor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/contracts/Contributor.js b/test/contracts/Contributor.js index 02ece20..3639c77 100644 --- a/test/contracts/Contributor.js +++ b/test/contracts/Contributor.js @@ -97,6 +97,8 @@ describe("Contributor contract", async function () { c = await Contributor.getContributorById(2); // TODO Are we required to use Wei for ERC20 tokens? expect(c['balance'].toString()).to.equal("6500000000000000000000"); + // FIXME This is also a BigNumber (uint256), but stored at Wei reolution + expect(c['kreditsWithdrawn'].toString()).to.equal('6500'); }); it("requires the withdrawable amount to be larger than 0", async function () {