2023-06-08 17:01:07 +02:00
|
|
|
import { IAlbumRepository } from '@app/domain';
|
2023-02-25 16:12:03 +02:00
|
|
|
|
|
|
|
export const newAlbumRepositoryMock = (): jest.Mocked<IAlbumRepository> => {
|
|
|
|
return {
|
2023-08-02 03:29:14 +02:00
|
|
|
getById: jest.fn(),
|
2023-03-18 15:44:42 +02:00
|
|
|
getByIds: jest.fn(),
|
2023-03-26 04:46:48 +02:00
|
|
|
getByAssetId: jest.fn(),
|
|
|
|
getAssetCountForIds: jest.fn(),
|
|
|
|
getInvalidThumbnail: jest.fn(),
|
|
|
|
getOwned: jest.fn(),
|
|
|
|
getShared: jest.fn(),
|
|
|
|
getNotShared: jest.fn(),
|
2023-09-18 17:56:50 +02:00
|
|
|
restoreAll: jest.fn(),
|
|
|
|
softDeleteAll: jest.fn(),
|
2023-02-25 16:12:03 +02:00
|
|
|
deleteAll: jest.fn(),
|
2023-03-03 04:47:08 +02:00
|
|
|
getAll: jest.fn(),
|
2023-08-16 03:34:57 +02:00
|
|
|
removeAsset: jest.fn(),
|
2023-05-25 21:37:19 +02:00
|
|
|
hasAsset: jest.fn(),
|
2023-05-25 04:10:45 +02:00
|
|
|
create: jest.fn(),
|
2023-05-25 21:37:19 +02:00
|
|
|
update: jest.fn(),
|
2023-05-26 15:04:09 +02:00
|
|
|
delete: jest.fn(),
|
2023-08-02 03:29:14 +02:00
|
|
|
updateThumbnails: jest.fn(),
|
2023-02-25 16:12:03 +02:00
|
|
|
};
|
|
|
|
};
|