2023-02-25 07:12:03 -07:00
|
|
|
import { IAlbumRepository } from '../src';
|
|
|
|
|
|
|
|
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-24 19:10:45 -07:00
|
|
|
create: jest.fn(),
|
2023-03-02 19:47:08 -07:00
|
|
|
save: jest.fn(),
|
2023-02-25 07:12:03 -07:00
|
|
|
};
|
|
|
|
};
|