2023-06-08 11:01:07 -04:00
|
|
|
import { IAlbumRepository } from '@app/domain';
|
2023-02-25 09:12:03 -05:00
|
|
|
|
|
|
|
export const newAlbumRepositoryMock = (): jest.Mocked<IAlbumRepository> => {
|
|
|
|
return {
|
2023-08-01 21:29:14 -04:00
|
|
|
getById: jest.fn(),
|
2023-03-18 08:44:42 -05: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 09:12:03 -05:00
|
|
|
deleteAll: jest.fn(),
|
2023-03-02 21:47:08 -05:00
|
|
|
getAll: jest.fn(),
|
2023-08-15 21:34:57 -04:00
|
|
|
removeAsset: jest.fn(),
|
2023-05-25 15:37:19 -04:00
|
|
|
hasAsset: jest.fn(),
|
2023-05-24 22:10:45 -04:00
|
|
|
create: jest.fn(),
|
2023-05-25 15:37:19 -04:00
|
|
|
update: jest.fn(),
|
2023-05-26 09:04:09 -04:00
|
|
|
delete: jest.fn(),
|
2023-08-01 21:29:14 -04:00
|
|
|
updateThumbnails: jest.fn(),
|
2023-02-25 09:12:03 -05:00
|
|
|
};
|
|
|
|
};
|