Skip to content

Commit 66376c2

Browse files
committed
fix: test
1 parent 08afe36 commit 66376c2

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/buy/components/BuyProvider.test.tsx

-28
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,6 @@ describe('BuyProvider', () => {
693693
expect.objectContaining({
694694
maxSlippage: '10',
695695
amount: '5',
696-
amountReference: 'to',
697696
from: ethToken,
698697
to: degenToken,
699698
useAggregator: true,
@@ -720,33 +719,6 @@ describe('BuyProvider', () => {
720719
});
721720
});
722721

723-
it('should pass the correct amountReference to get', async () => {
724-
const TestComponent = () => {
725-
const { handleAmountChange } = useBuyContext();
726-
// biome-ignore lint: hello
727-
React.useEffect(() => {
728-
const initializeSwap = () => {
729-
handleAmountChange('100');
730-
};
731-
initializeSwap();
732-
}, []);
733-
return null;
734-
};
735-
await act(async () => {
736-
renderWithProviders({ Component: TestComponent });
737-
});
738-
expect(getBuyQuote).toHaveBeenCalledWith(
739-
expect.objectContaining({
740-
maxSlippage: '10',
741-
amount: '100',
742-
amountReference: 'to',
743-
from: ethToken,
744-
to: degenToken,
745-
useAggregator: true,
746-
}),
747-
);
748-
});
749-
750722
it('should handle undefined in input', async () => {
751723
const TestComponent = () => {
752724
const { handleAmountChange } = useBuyContext();

0 commit comments

Comments
 (0)