2023-06-08 10:01:07 -05:00
|
|
|
import { IAlbumRepository } from '@app/domain';
|
2023-02-25 09:12:03 -05:00
|
|
|
|
|
|
|
export const newAlbumRepositoryMock = (): jest.Mocked<IAlbumRepository> => {
|
|
|
|
return {
|
2023-03-18 08:44:42 -05:00
|
|
|
getByIds: jest.fn(),
|
2023-03-25 21:46:48 -05:00
|
|
|
getByAssetId: jest.fn(),
|
|
|
|
getAssetCountForIds: jest.fn(),
|
|
|
|
getInvalidThumbnail: jest.fn(),
|
|
|
|
getOwned: jest.fn(),
|
|
|
|
getShared: jest.fn(),
|
|
|
|
getNotShared: 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-05-25 14:37:19 -05:00
|
|
|
hasAsset: jest.fn(),
|
2023-05-24 21:10:45 -05:00
|
|
|
create: jest.fn(),
|
2023-05-25 14:37:19 -05:00
|
|
|
update: jest.fn(),
|
2023-05-26 08:04:09 -05:00
|
|
|
delete: jest.fn(),
|
2023-02-25 09:12:03 -05:00
|
|
|
};
|
|
|
|
};
|