1 import { exchangeRate } from '@proton/wallet/tests';
3 import * as useWalletAccountExchangeRateModule from '../../store/hooks/useWalletAccountExchangeRate';
5 export const mockUseWalletAccountExchangeRate = (
6 mockedValue?: ReturnType<typeof useWalletAccountExchangeRateModule.useWalletAccountExchangeRate>[0] | null
8 const spy = vi.spyOn(useWalletAccountExchangeRateModule, 'useWalletAccountExchangeRate');
10 spy.mockReturnValue([mockedValue === undefined ? exchangeRate : (mockedValue ?? undefined), false]);