mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 20:36:48 +01:00
17 lines
439 B
TypeScript
17 lines
439 B
TypeScript
import { IAlbumRepository } from '../src';
|
|
|
|
export const newAlbumRepositoryMock = (): jest.Mocked<IAlbumRepository> => {
|
|
return {
|
|
getByIds: jest.fn(),
|
|
getByAssetId: jest.fn(),
|
|
getAssetCountForIds: jest.fn(),
|
|
getInvalidThumbnail: jest.fn(),
|
|
getOwned: jest.fn(),
|
|
getShared: jest.fn(),
|
|
getNotShared: jest.fn(),
|
|
deleteAll: jest.fn(),
|
|
getAll: jest.fn(),
|
|
create: jest.fn(),
|
|
save: jest.fn(),
|
|
};
|
|
};
|