Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Dec 13, 2024
1 parent c727598 commit 501a141
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/swap/hooks/useResetSwapLiteInputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,24 @@ describe('useResetSwapLiteInputs', () => {
isPending: true,
isSuccess: false,
status: 'pending',
refetch: vi.fn().mockResolvedValue(undefined),
} as const;

const mockFromTokenResponse = mockQueryResponse;
const mockFromETHTokenResponse = mockQueryResponse;
const mockFromUSDCTokenResponse = mockQueryResponse;
const mockToTokenResponse = mockQueryResponse;
const mockFromTokenResponse = {
...mockQueryResponse,
refetch: vi.fn().mockResolvedValue(undefined),
};
const mockFromETHTokenResponse = {
...mockQueryResponse,
refetch: vi.fn().mockResolvedValue(undefined),
};
const mockFromUSDCTokenResponse = {
...mockQueryResponse,
refetch: vi.fn().mockResolvedValue(undefined),
};
const mockToTokenResponse = {
...mockQueryResponse,
refetch: vi.fn().mockResolvedValue(undefined),
};
const mockFrom: SwapUnit = {
balance: '100',
balanceResponse: mockFromTokenResponse,
Expand Down

0 comments on commit 501a141

Please sign in to comment.