Skip to content

Commit

Permalink
test: make curve adapter test more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
janndriessen committed Jan 3, 2025
1 parent 547e9d7 commit c99f468
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/quote/swap/adapters/curve/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ describe('CurveSwapQuoteProvider', () => {
expect(quote.swapData?.exchange).toBe(Exchange.Curve)
expect(quote.swapData?.path.length).toBe(2)
expect(quote.swapData?.fees.length).toBe(0)
expect(quote.swapData?.path).toEqual([weth, steth])
expect(quote.swapData?.path[0]).toEqual(weth)
expect(quote.swapData?.path[quote.swapData.path.length - 1]).toEqual(steth)
expect(quote.swapData?.pool).toBe(curvePool)
// expect(quote.callData).not.toBe('0x')
expect(BigInt(quote.inputAmount) > BigInt(0)).toBe(true)
Expand All @@ -53,7 +54,8 @@ describe('CurveSwapQuoteProvider', () => {
expect(quote.swapData?.exchange).toBe(Exchange.Curve)
expect(quote.swapData?.path.length).toBe(2)
expect(quote.swapData?.fees.length).toBe(0)
expect(quote.swapData?.path).toEqual([weth, steth])
expect(quote.swapData?.path[0]).toEqual(weth)
expect(quote.swapData?.path[quote.swapData.path.length - 1]).toEqual(steth)
expect(quote.swapData?.pool).toBe(curvePool)
// expect(quote.callData).not.toBe('0x')
expect(BigInt(quote.inputAmount) > BigInt(0)).toBe(true)
Expand Down

0 comments on commit c99f468

Please sign in to comment.