Skip to content

Commit

Permalink
feat: update token tests to include useStakingChain mock
Browse files Browse the repository at this point in the history
  • Loading branch information
amitabh94 committed Jan 15, 2025
1 parent db2fb3c commit 1971ee3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/components/UI/Tokens/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,14 @@ jest.mock('../../UI/Stake/hooks/useStakingEligibility', () => ({
})),
}));

jest.mock('../Stake/hooks/useStakingChain', () => ({
useStakingChainByChainId: () => ({
jest.mock('../../UI/Stake/hooks/useStakingChain', () => ({
__esModule: true,
default: jest.fn(() => ({
isStakingSupportedChain: true,
}),
})),
useStakingChainByChainId: jest.fn(() => ({
isStakingSupportedChain: true,
})),
}));

const Stack = createStackNavigator();
Expand Down

0 comments on commit 1971ee3

Please sign in to comment.