mirror of
https://github.com/immich-app/immich.git
synced 2025-01-08 12:56:48 +01:00
746ca5d5ed
* Add album sorting to web albums view * generate api --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
20 lines
560 B
TypeScript
20 lines
560 B
TypeScript
import { IAssetRepository } from '@app/domain';
|
|
|
|
export const newAssetRepositoryMock = (): jest.Mocked<IAssetRepository> => {
|
|
return {
|
|
getByDate: jest.fn(),
|
|
getByIds: jest.fn().mockResolvedValue([]),
|
|
getWithout: jest.fn(),
|
|
getWith: jest.fn(),
|
|
getFirstAssetForAlbumId: jest.fn(),
|
|
getLastUpdatedAssetForAlbumId: jest.fn(),
|
|
getAll: jest.fn().mockResolvedValue({
|
|
items: [],
|
|
hasNextPage: false,
|
|
}),
|
|
deleteAll: jest.fn(),
|
|
save: jest.fn(),
|
|
findLivePhotoMatch: jest.fn(),
|
|
getMapMarkers: jest.fn(),
|
|
};
|
|
};
|