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-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-02-25 07:12:03 -07:00
|
|
|
deleteAll: jest.fn(),
|
2023-03-02 19:47:08 -07:00
|
|
|
getAll: 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-02-25 07:12:03 -07:00
|
|
|
};
|
|
|
|
};
|