mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
b8d6cc1e09
* feat: improve performances in people page * feat: add loadingspinner when searching * fix: reset people on error * fix: case insensitive * feat: better sql query * fix: reset people list before api request * fix: format
26 lines
631 B
TypeScript
26 lines
631 B
TypeScript
import { IPersonRepository } from '@app/domain';
|
|
|
|
export const newPersonRepositoryMock = (): jest.Mocked<IPersonRepository> => {
|
|
return {
|
|
getById: jest.fn(),
|
|
getAll: jest.fn(),
|
|
getAllWithoutThumbnail: 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(),
|
|
|
|
getAllFaces: jest.fn(),
|
|
getFacesByIds: jest.fn(),
|
|
getRandomFace: jest.fn(),
|
|
prepareReassignFaces: jest.fn(),
|
|
reassignFaces: jest.fn(),
|
|
createFace: jest.fn(),
|
|
};
|
|
};
|