Make test complete, add FIXME note
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Râu Cao 2022-08-25 11:51:31 +02:00
parent 2b3fd1241d
commit e99184b83f
Signed by: raucao
GPG Key ID: 15E65F399D084BA9

View File

@ -97,6 +97,8 @@ describe("Contributor contract", async function () {
c = await Contributor.getContributorById(2); c = await Contributor.getContributorById(2);
// TODO Are we required to use Wei for ERC20 tokens? // TODO Are we required to use Wei for ERC20 tokens?
expect(c['balance'].toString()).to.equal("6500000000000000000000"); 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 () { it("requires the withdrawable amount to be larger than 0", async function () {