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