Skip to content

Commit

Permalink
feat: add test for zap < 1 ETH
Browse files Browse the repository at this point in the history
  • Loading branch information
PraneshASP committed Apr 23, 2024
1 parent 71f0002 commit e0a5065
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contracts/test/zapper/woethccipzapper.fork-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ describe("ForkTest: WOETH CCIP Zapper", function () {
depositAmount
);
});

it("zap(): Should zap ETH (< 1) and send WOETH to CCIP contract", async () => {
const { woethZapper, woethOnSourceChain, mockCcipRouter, josh } = fixture;
const depositAmount = parseUnits("0.5");

await woethZapper.connect(josh).zap(josh.address, { value: depositAmount });
expect(await woethOnSourceChain.balanceOf(mockCcipRouter.address)).to.gt(0);
});

it("receive(): Should zap ETH and send WOETH to CCIP contract", async () => {
const { woethZapper, woethOnSourceChain, mockCcipRouter, josh } = fixture;
const depositAmount = parseUnits("5");
Expand Down

0 comments on commit e0a5065

Please sign in to comment.