Merge branch 'renovate/all-minor-patch' into 'main'
[ProtonMail-WebClient.git] / packages / wallet / tests / mocks / useBitcoinAddressPool.ts
blobe464e97d9095f931f396ac5da8eded20f61dc0d4
1 import * as useBitcoinAddressPoolModule from '../../store/hooks/useBitcoinAddressPool';
3 export const mockUseGetBitcoinAddressPool = (
4     mockedValue?: ReturnType<typeof useBitcoinAddressPoolModule.useGetBitcoinAddressPool>
5 ) => {
6     const spy = vi.spyOn(useBitcoinAddressPoolModule, 'useGetBitcoinAddressPool');
7     spy.mockReturnValue(mockedValue ?? vi.fn());
8     return spy;
9 };