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