mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
986bbfa831
* Add AssetJobStatus * fentity * Add jobStatus field to AssetEntity * Fix the migration doc paths * Filter on facesRecognizedAt * Set facesRecognizedAt field * Test for facesRecognizedAt * Done testing * Adjust FK properties * Add tests for WithoutProperty.FACES * chore: non-nullable --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
35 lines
1 KiB
TypeScript
35 lines
1 KiB
TypeScript
import { IAssetRepository } from '@app/domain';
|
|
|
|
export const newAssetRepositoryMock = (): jest.Mocked<IAssetRepository> => {
|
|
return {
|
|
create: jest.fn(),
|
|
upsertExif: jest.fn(),
|
|
upsertJobStatus: jest.fn(),
|
|
getByDate: jest.fn(),
|
|
getByDayOfYear: jest.fn(),
|
|
getByIds: jest.fn().mockResolvedValue([]),
|
|
getByAlbumId: jest.fn(),
|
|
getByUserId: jest.fn(),
|
|
getById: jest.fn(),
|
|
getWithout: jest.fn(),
|
|
getByChecksum: jest.fn(),
|
|
getWith: jest.fn(),
|
|
getRandom: jest.fn(),
|
|
getFirstAssetForAlbumId: jest.fn(),
|
|
getLastUpdatedAssetForAlbumId: jest.fn(),
|
|
getAll: jest.fn().mockResolvedValue({ items: [], hasNextPage: false }),
|
|
updateAll: jest.fn(),
|
|
getByLibraryId: jest.fn(),
|
|
getByLibraryIdAndOriginalPath: jest.fn(),
|
|
deleteAll: jest.fn(),
|
|
save: jest.fn(),
|
|
remove: jest.fn(),
|
|
findLivePhotoMatch: jest.fn(),
|
|
getMapMarkers: jest.fn(),
|
|
getStatistics: jest.fn(),
|
|
getTimeBucket: jest.fn(),
|
|
getTimeBuckets: jest.fn(),
|
|
restoreAll: jest.fn(),
|
|
softDeleteAll: jest.fn(),
|
|
};
|
|
};
|