mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 10:28:54 -07:00
50c9bc0336
* chore: jest => vitest * chore: replace jest-when
34 lines
872 B
TypeScript
34 lines
872 B
TypeScript
import { IPersonRepository } from 'src/interfaces/person.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newPersonRepositoryMock = (): Mocked<IPersonRepository> => {
|
|
return {
|
|
getById: vitest.fn(),
|
|
getAll: vitest.fn(),
|
|
getAllForUser: vitest.fn(),
|
|
getAssets: vitest.fn(),
|
|
getAllWithoutFaces: vitest.fn(),
|
|
|
|
getByName: vitest.fn(),
|
|
|
|
create: vitest.fn(),
|
|
update: vitest.fn(),
|
|
deleteAll: vitest.fn(),
|
|
delete: vitest.fn(),
|
|
deleteAllFaces: vitest.fn(),
|
|
|
|
getStatistics: vitest.fn(),
|
|
getAllFaces: vitest.fn(),
|
|
getFacesByIds: vitest.fn(),
|
|
getRandomFace: vitest.fn(),
|
|
|
|
reassignFaces: vitest.fn(),
|
|
createFaces: vitest.fn(),
|
|
getFaces: vitest.fn(),
|
|
reassignFace: vitest.fn(),
|
|
getFaceById: vitest.fn(),
|
|
getFaceByIdWithAssets: vitest.fn(),
|
|
getNumberOfPeople: vitest.fn(),
|
|
};
|
|
};
|