1 import * as useNotificationsModule from '@proton/components/hooks/useNotifications';
3 export const mockUseNotifications = (value?: Partial<ReturnType<typeof useNotificationsModule.default>>) => {
4 const mockedUseNotifications = jest.spyOn(useNotificationsModule, 'default');
6 mockedUseNotifications.mockReturnValue({
8 removeDuplicate: jest.fn(),
9 createNotification: jest.fn(),
10 removeNotification: jest.fn(),
11 hideNotification: jest.fn(),
12 clearNotifications: jest.fn(),
16 return mockedUseNotifications;