Merge branch 'renovate/all-minor-patch' into 'main'
[ProtonMail-WebClient.git] / packages / wallet / tests / mocks / useFiatCurrencies.ts
blob2b46ec3d538b91ff1f9ab1921f17d37660e7cf04
1 import * as useFiatCurrenciesModule from '../../store/hooks/useFiatCurrencies';
3 export const mockUseFiatCurrencies = (
4     mockedValue?: Partial<ReturnType<typeof useFiatCurrenciesModule.useFiatCurrencies>>
5 ) => {
6     const spy = vi.spyOn(useFiatCurrenciesModule, 'useFiatCurrencies');
8     spy.mockReturnValue([mockedValue?.[0] ?? [], mockedValue?.[1] ?? false]);
10     return spy;