mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 11:15:54 +02:00
c86b2ae500
* feat(server/web): Merge faces * get parent id * update * query to get identical asset and change controller * change delete asset signature * delete identical assets * gaming time * delete merge person * query * query * generate api * pr feedback * generate api * naming * remove unused method * Update server/src/domain/person/person.service.ts Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Update server/src/domain/person/person.service.ts Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * better method signature * cleaning up * fix bug * added interfaces * added tests * merge main * api * build merge face interface * api * selector interface * style * more style * clean up import * styling * styling * better * styling * styling * add merge face diablog * finished * refactor: merge person endpoint * refactor: merge person component * chore: open api * fix: tests --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
20 lines
448 B
TypeScript
20 lines
448 B
TypeScript
import { IPersonRepository } from '@app/domain';
|
|
|
|
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(),
|
|
};
|
|
};
|