1 import * as useUserWalletSettingsModule from '../../store/hooks/useUserWalletSettings';
2 import { userWalletSettings } from '../fixtures/api';
4 export const mockUseUserWalletSettings = (
5 mockedValue?: ReturnType<typeof useUserWalletSettingsModule.useUserWalletSettings>
7 const spy = vi.spyOn(useUserWalletSettingsModule, 'useUserWalletSettings');
9 spy.mockReturnValue([mockedValue ? mockedValue[0] : userWalletSettings, mockedValue?.[1] ?? false]);
14 export const mockUseGetUserWalletSettings = (
15 mockedValue: () => Promise<typeof userWalletSettings> = async () => userWalletSettings
17 const spy = vi.spyOn(useUserWalletSettingsModule, 'useGetUserWalletSettings');
18 spy.mockReturnValue(mockedValue ?? vi.fn(async () => userWalletSettings));