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