2023-01-18 14:40:15 +00:00
|
|
|
import { IUserRepository } from '../src';
|
|
|
|
|
|
|
|
export const newUserRepositoryMock = (): jest.Mocked<IUserRepository> => {
|
|
|
|
return {
|
|
|
|
get: jest.fn(),
|
|
|
|
getAdmin: jest.fn(),
|
|
|
|
getByEmail: jest.fn(),
|
|
|
|
getByOAuthId: jest.fn(),
|
|
|
|
getList: jest.fn(),
|
|
|
|
create: jest.fn(),
|
|
|
|
update: jest.fn(),
|
|
|
|
delete: jest.fn(),
|
2023-02-25 14:12:03 +00:00
|
|
|
getDeletedUsers: jest.fn(),
|
2023-01-18 14:40:15 +00:00
|
|
|
restore: jest.fn(),
|
|
|
|
};
|
|
|
|
};
|