mirror of
https://github.com/immich-app/immich.git
synced 2024-12-23 02:06:15 +02:00
f094ff2aa1
* Revert "fix: album performances (#5224)" This reverts commitc438e17954
. * Revert "fix: album sorting options (#5127)" This reverts commit725f30c494
.
28 lines
719 B
TypeScript
28 lines
719 B
TypeScript
import { IAlbumRepository } from '@app/domain';
|
|
|
|
export const newAlbumRepositoryMock = (): jest.Mocked<IAlbumRepository> => {
|
|
return {
|
|
getById: jest.fn(),
|
|
getByIds: jest.fn(),
|
|
getByAssetId: jest.fn(),
|
|
getAssetCountForIds: jest.fn(),
|
|
getInvalidThumbnail: jest.fn(),
|
|
getOwned: jest.fn(),
|
|
getShared: jest.fn(),
|
|
getNotShared: jest.fn(),
|
|
restoreAll: jest.fn(),
|
|
softDeleteAll: jest.fn(),
|
|
deleteAll: jest.fn(),
|
|
getAll: jest.fn(),
|
|
addAssets: jest.fn(),
|
|
removeAsset: jest.fn(),
|
|
removeAssets: jest.fn(),
|
|
getAssetIds: jest.fn(),
|
|
hasAsset: jest.fn(),
|
|
create: jest.fn(),
|
|
update: jest.fn(),
|
|
delete: jest.fn(),
|
|
updateThumbnails: jest.fn(),
|
|
};
|
|
};
|