Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
test: uncomment test case (update #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
islishude committed Jul 13, 2023
1 parent 2024e4e commit 68fa0f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/UniswapV2Pair.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ describe("UniswapV2Pair", () => {
await pair.sync();

const initialPrice = encodePrice(token0Amount, token1Amount);
// expect(await pair.price0CumulativeLast()).to.eq(initialPrice[0]);
// expect(await pair.price1CumulativeLast()).to.eq(initialPrice[1]);
// expect((await pair.getReserves())[2]).to.eq(blockTimestamp + 1);
expect(await pair.price0CumulativeLast()).to.eq(initialPrice[0]);
expect(await pair.price1CumulativeLast()).to.eq(initialPrice[1]);
expect((await pair.getReserves())[2]).to.eq(blockTimestamp + 1);

const swapAmount = expandTo18Decimals(3);
await token0.transfer(pair.address, swapAmount);
Expand Down

0 comments on commit 68fa0f7

Please sign in to comment.