mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 10:28:54 -07:00
30f499cf2e
update server to use absolute import paths
33 lines
802 B
TypeScript
33 lines
802 B
TypeScript
import { IPersonRepository } from 'src/domain/repositories/person.repository';
|
|
|
|
export const newPersonRepositoryMock = (): jest.Mocked<IPersonRepository> => {
|
|
return {
|
|
getById: jest.fn(),
|
|
getAll: jest.fn(),
|
|
getAllForUser: jest.fn(),
|
|
getAssets: jest.fn(),
|
|
getAllWithoutFaces: jest.fn(),
|
|
|
|
getByName: jest.fn(),
|
|
|
|
create: jest.fn(),
|
|
update: jest.fn(),
|
|
deleteAll: jest.fn(),
|
|
delete: jest.fn(),
|
|
deleteAllFaces: jest.fn(),
|
|
|
|
getStatistics: jest.fn(),
|
|
getAllFaces: jest.fn(),
|
|
getFacesByIds: jest.fn(),
|
|
getRandomFace: jest.fn(),
|
|
|
|
reassignFaces: jest.fn(),
|
|
createFaces: jest.fn(),
|
|
getFaces: jest.fn(),
|
|
reassignFace: jest.fn(),
|
|
getFaceById: jest.fn(),
|
|
getFaceByIdWithAssets: jest.fn(),
|
|
getNumberOfPeople: jest.fn(),
|
|
};
|
|
};
|