mirror of
https://github.com/immich-app/immich.git
synced 2025-01-09 13:26:47 +01:00
f1384fea58
* feat(server): pagination for asset queries in jobs * default mock value for getAll * remove live photo name correction * order paginated results by createdAt * change log level * move usePagination to domain
17 lines
437 B
TypeScript
17 lines
437 B
TypeScript
import { IAssetRepository } from '../src';
|
|
|
|
export const newAssetRepositoryMock = (): jest.Mocked<IAssetRepository> => {
|
|
return {
|
|
getByIds: jest.fn(),
|
|
getWithout: jest.fn(),
|
|
getFirstAssetForAlbumId: jest.fn(),
|
|
getAll: jest.fn().mockResolvedValue({
|
|
items: [],
|
|
hasNextPage: false,
|
|
}),
|
|
deleteAll: jest.fn(),
|
|
save: jest.fn(),
|
|
findLivePhotoMatch: jest.fn(),
|
|
getMapMarkers: jest.fn(),
|
|
};
|
|
};
|