Skip to content

Commit 96cb7be

Browse files
committed
chore: fix bad merge resolution update test
1 parent a77c6c8 commit 96cb7be

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

app/components/UI/Earn/hooks/useMusdCtaVisibility.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,20 @@ describe('useMusdCtaVisibility', () => {
850850
balancesByChain: {},
851851
hasMusdBalanceOnChain: jest.fn().mockReturnValue(false),
852852
});
853+
// Provide tokens with chainId so canConvert is true
854+
mockUseMusdConversionTokens.mockReturnValue({
855+
tokens: [
856+
createMockToken({
857+
name: 'USDC',
858+
symbol: 'USDC',
859+
chainId: CHAIN_IDS.MAINNET,
860+
}) as TokenI,
861+
],
862+
filterAllowedTokens: jest.fn(),
863+
isConversionToken: jest.fn().mockReturnValue(true),
864+
isMusdSupportedOnChain: jest.fn().mockReturnValue(true),
865+
getMusdOutputChainId: jest.fn().mockReturnValue(CHAIN_IDS.MAINNET),
866+
});
853867

854868
const { result } = renderHook(() => useMusdCtaVisibility());
855869
const { shouldShowCta } = result.current.shouldShowBuyGetMusdCta();

0 commit comments

Comments
 (0)