Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsv committed Nov 19, 2024
1 parent 81faa89 commit 9cdf1a2
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ describe('get candidate pools', () => {
buildMockV3PoolAccessor([...poolsOnSubgraph, DAI_WETH_LOW])
);

await getV3CandidatePools({
const candidatePools = await getV3CandidatePools({
tokenIn: WRAPPED_NATIVE_CURRENCY[1]!,
tokenOut: AMPL_MAINNET,
routeType: TradeType.EXACT_INPUT,
Expand All @@ -507,9 +507,7 @@ describe('get candidate pools', () => {
chainId: ChainId.MAINNET,
});

expect(
mockV3PoolProvider.getPools.calledWithExactly([], { blockNumber: undefined })
).toBeTruthy();
expect(candidatePools.candidatePools.selections.topByDirectSwapPool.length).toEqual(0);
}
});

Expand Down

0 comments on commit 9cdf1a2

Please sign in to comment.