Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Oct 28, 2024
1 parent 89ab6bd commit 4bb3be6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jest.mock('../../hooks/usePaymentMethods', () =>
);

const MAX_LIMIT = 4;
const VALID_AMOUNT = 3;
const VALID_AMOUNT = '3';
const MIN_LIMIT = 2;
const mockUseLimitsInitialValues: Partial<ReturnType<typeof useLimits>> = {
limits: {
Expand Down
2 changes: 1 addition & 1 deletion app/components/UI/Ramp/Views/Quotes/Quotes.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jest.mock('../../hooks/useAnalytics', () => () => mockTrackEvent);
jest.mock('../../hooks/useInAppBrowser', () => () => mockRenderInAppBrowser);

const mockUseParamsInitialValues: DeepPartial<QuotesParams> = {
amount: 50,
amount: '50',
asset: {
symbol: 'ETH',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

exports[`useTokenBalancesController() should not rerender when state is not changed 1`] = `
<Text>
{"data":{"0x326836cc6cd09B5aa59B81A7F72F25FcC0136b95":"2a"}}
{"data":{"0x326836cc6cd09B5aa59B81A7F72F25FcC0136b95":"0x2a"}}
</Text>
`;

exports[`useTokenBalancesController() should not rerender when state is not changed 2`] = `
<Text>
{"data":{"0x326836cc6cd09B5aa59B81A7F72F25FcC0136b95":"2a"}}
{"data":{"0x326836cc6cd09B5aa59B81A7F72F25FcC0136b95":"0x2a"}}
</Text>
`;

exports[`useTokenBalancesController() should rerender when state changed 1`] = `
<Text>
{"data":{"0x326836cc6cd09B5aa59B81A7F72F25FcC0136b95":"2a"}}
{"data":{"0x326836cc6cd09B5aa59B81A7F72F25FcC0136b95":"0x2a"}}
</Text>
`;

exports[`useTokenBalancesController() should rerender when state changed 2`] = `
<Text>
{"data":{"0x326836cc6cd09B5aa59B81A7F72F25FcC0136b95":"2a","0x326836cc6cd09B5aa59B81A7F72F25FcC0136b96":"539"}}
{"data":{"0x326836cc6cd09B5aa59B81A7F72F25FcC0136b95":"0x2a","0x326836cc6cd09B5aa59B81A7F72F25FcC0136b96":"0x539"}}
</Text>
`;

0 comments on commit 4bb3be6

Please sign in to comment.