Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Le Vu Long <[email protected]>
  • Loading branch information
longngn committed Jan 23, 2025
1 parent 2fde6d0 commit 69e4c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/adapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ describe.each([
expect(adaMINMainnet?.assetB).toEqual(MIN_MAINNET);
});

async function testPriceHistory(adapter: any, id: string): Promise<void> {
const history = await adapter.getV1PoolHistory({ id });
async function testPriceHistory(adapter: Adapter, id: string): Promise<void> {
const history = await adapter.getV1PoolHistory({}, { id });
for (let i = 0; i < Math.min(5, history.length); i++) {
const pool = await adapter.getV1PoolInTx({ txHash: history[i].txHash });
expect(pool?.txIn.txHash).toEqual(history[i].txHash);
Expand Down

0 comments on commit 69e4c2a

Please sign in to comment.