2023-06-08 10:01:07 -05:00
|
|
|
import { IPersonRepository } from '@app/domain';
|
2023-05-17 12:07:17 -05:00
|
|
|
|
|
|
|
export const newPersonRepositoryMock = (): jest.Mocked<IPersonRepository> => {
|
|
|
|
return {
|
|
|
|
getById: jest.fn(),
|
|
|
|
getAll: jest.fn(),
|
2023-09-08 01:49:43 -05:00
|
|
|
getAllWithoutThumbnail: jest.fn(),
|
|
|
|
getAllForUser: jest.fn(),
|
2023-05-17 12:07:17 -05:00
|
|
|
getAssets: jest.fn(),
|
|
|
|
getAllWithoutFaces: jest.fn(),
|
|
|
|
|
2023-10-10 09:34:25 -05:00
|
|
|
getByName: jest.fn(),
|
|
|
|
|
2023-05-17 12:07:17 -05:00
|
|
|
create: jest.fn(),
|
|
|
|
update: jest.fn(),
|
|
|
|
deleteAll: jest.fn(),
|
|
|
|
delete: jest.fn(),
|
2023-07-02 17:46:20 -05:00
|
|
|
|
2023-10-24 10:53:49 -05:00
|
|
|
getStatistics: jest.fn(),
|
2023-09-27 15:46:46 -05:00
|
|
|
getAllFaces: jest.fn(),
|
|
|
|
getFacesByIds: jest.fn(),
|
2023-09-08 01:49:43 -05:00
|
|
|
getRandomFace: jest.fn(),
|
2023-07-11 16:52:41 -05:00
|
|
|
prepareReassignFaces: jest.fn(),
|
|
|
|
reassignFaces: jest.fn(),
|
2023-09-27 15:46:46 -05:00
|
|
|
createFace: jest.fn(),
|
2023-05-17 12:07:17 -05:00
|
|
|
};
|
|
|
|
};
|