2023-02-25 16:12:03 +02:00
|
|
|
import { IAlbumRepository } from '../src';
|
|
|
|
|
|
|
|
export const newAlbumRepositoryMock = (): jest.Mocked<IAlbumRepository> => {
|
|
|
|
return {
|
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-02-25 16:12:03 +02:00
|
|
|
deleteAll: jest.fn(),
|
2023-03-03 04:47:08 +02:00
|
|
|
getAll: 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-02-25 16:12:03 +02:00
|
|
|
};
|
|
|
|
};
|