2023-06-08 17:01:07 +02:00
|
|
|
import { IPersonRepository } from '@app/domain';
|
2023-05-17 19:07:17 +02:00
|
|
|
|
|
|
|
export const newPersonRepositoryMock = (): jest.Mocked<IPersonRepository> => {
|
|
|
|
return {
|
|
|
|
getById: jest.fn(),
|
|
|
|
getAll: jest.fn(),
|
2023-09-08 08:49:43 +02:00
|
|
|
getAllForUser: jest.fn(),
|
2023-05-17 19:07:17 +02:00
|
|
|
getAssets: jest.fn(),
|
|
|
|
getAllWithoutFaces: jest.fn(),
|
|
|
|
|
2023-10-10 16:34:25 +02:00
|
|
|
getByName: jest.fn(),
|
|
|
|
|
2023-05-17 19:07:17 +02:00
|
|
|
create: jest.fn(),
|
|
|
|
update: jest.fn(),
|
|
|
|
deleteAll: jest.fn(),
|
|
|
|
delete: jest.fn(),
|
2024-01-18 07:08:48 +02:00
|
|
|
deleteAllFaces: jest.fn(),
|
2023-07-03 00:46:20 +02:00
|
|
|
|
2023-10-24 17:53:49 +02:00
|
|
|
getStatistics: jest.fn(),
|
2023-09-27 22:46:46 +02:00
|
|
|
getAllFaces: jest.fn(),
|
|
|
|
getFacesByIds: jest.fn(),
|
2023-09-08 08:49:43 +02:00
|
|
|
getRandomFace: jest.fn(),
|
2023-12-05 17:43:15 +02:00
|
|
|
|
2023-07-11 23:52:41 +02:00
|
|
|
reassignFaces: jest.fn(),
|
2024-01-25 08:27:39 +02:00
|
|
|
createFaces: jest.fn(),
|
2023-12-05 17:43:15 +02:00
|
|
|
getFaces: jest.fn(),
|
|
|
|
reassignFace: jest.fn(),
|
|
|
|
getFaceById: jest.fn(),
|
|
|
|
getFaceByIdWithAssets: jest.fn(),
|
2024-01-28 02:54:31 +02:00
|
|
|
getNumberOfPeople: jest.fn(),
|
2023-05-17 19:07:17 +02:00
|
|
|
};
|
|
|
|
};
|