From 1aa678ed4d6e8fb9066502e2ef614d778699e21d Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Sun, 3 Apr 2022 09:08:29 +0200 Subject: [PATCH] standarize DAI amount --- test/unit/pools/Router.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/pools/Router.test.ts b/test/unit/pools/Router.test.ts index 5e1202b5..60c9c1ae 100644 --- a/test/unit/pools/Router.test.ts +++ b/test/unit/pools/Router.test.ts @@ -24,7 +24,7 @@ describe('Router unit test', () => { const RATE = '1' const FEE = '0.001' const FEE_ZERO = '0' - const DAI_AMOUNT = web3.utils.toWei('2') + const DAI_AMOUNT = '2' // 2 DAI const CAP_AMOUNT = '1000000' const VESTING_AMOUNT = '10000' const TOKEN_DECIMALS = 18 @@ -103,7 +103,9 @@ describe('Router unit test', () => { contracts.daiAddress ) - await daiContract.methods.transfer(user1, DAI_AMOUNT).send({ from: factoryOwner }) + await daiContract.methods + .transfer(user1, web3.utils.toWei(DAI_AMOUNT)) + .send({ from: factoryOwner }) await approve(web3, user1, contracts.daiAddress, contracts.routerAddress, DAI_AMOUNT)