mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
b588a87d4a
rename domain repositories
28 lines
736 B
TypeScript
28 lines
736 B
TypeScript
import { IAlbumRepository } from 'src/interfaces/album.interface';
|
|
|
|
export const newAlbumRepositoryMock = (): jest.Mocked<IAlbumRepository> => {
|
|
return {
|
|
getById: jest.fn(),
|
|
getByIds: jest.fn(),
|
|
getByAssetId: jest.fn(),
|
|
getMetadataForIds: 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(),
|
|
};
|
|
};
|