2023-06-08 17:01:07 +02:00
|
|
|
import { IUserRepository } from '@app/domain';
|
2023-01-18 16:40:15 +02:00
|
|
|
|
|
|
|
export const newUserRepositoryMock = (): jest.Mocked<IUserRepository> => {
|
|
|
|
return {
|
|
|
|
get: jest.fn(),
|
|
|
|
getAdmin: jest.fn(),
|
|
|
|
getByEmail: jest.fn(),
|
2023-05-22 05:18:10 +02:00
|
|
|
getByStorageLabel: jest.fn(),
|
2023-01-18 16:40:15 +02:00
|
|
|
getByOAuthId: jest.fn(),
|
2023-03-22 04:49:19 +02:00
|
|
|
getUserStats: jest.fn(),
|
2023-01-18 16:40:15 +02:00
|
|
|
getList: jest.fn(),
|
|
|
|
create: jest.fn(),
|
|
|
|
update: jest.fn(),
|
|
|
|
delete: jest.fn(),
|
2023-02-25 16:12:03 +02:00
|
|
|
getDeletedUsers: jest.fn(),
|
2023-01-18 16:40:15 +02:00
|
|
|
restore: jest.fn(),
|
|
|
|
};
|
|
|
|
};
|