mirror of
https://github.com/immich-app/immich.git
synced 2025-01-09 05:16:47 +01:00
2dfd56b49b
* fix: reload assets from typesense results * chore: coverage
18 lines
483 B
TypeScript
18 lines
483 B
TypeScript
import { IAssetRepository } from '../src';
|
|
|
|
export const newAssetRepositoryMock = (): jest.Mocked<IAssetRepository> => {
|
|
return {
|
|
getByIds: jest.fn().mockResolvedValue([]),
|
|
getWithout: jest.fn(),
|
|
getWith: jest.fn(),
|
|
getFirstAssetForAlbumId: jest.fn(),
|
|
getAll: jest.fn().mockResolvedValue({
|
|
items: [],
|
|
hasNextPage: false,
|
|
}),
|
|
deleteAll: jest.fn(),
|
|
save: jest.fn(),
|
|
findLivePhotoMatch: jest.fn(),
|
|
getMapMarkers: jest.fn(),
|
|
};
|
|
};
|