1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 11:24:37 +02:00
immich/server/test/repositories/person.repository.mock.ts

20 lines
448 B
TypeScript
Raw Normal View History

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(),
getAssets: jest.fn(),
getAllWithoutFaces: jest.fn(),
create: jest.fn(),
update: jest.fn(),
deleteAll: jest.fn(),
delete: jest.fn(),
getFaceById: jest.fn(),
prepareReassignFaces: jest.fn(),
reassignFaces: jest.fn(),
2023-05-17 19:07:17 +02:00
};
};