mirror of
https://github.com/immich-app/immich.git
synced 2024-12-24 10:37:28 +02:00
4cc6e3b966
* refactor: update album * fix: remove unnecessary decorator
19 lines
466 B
TypeScript
19 lines
466 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(),
|
|
hasAsset: jest.fn(),
|
|
create: jest.fn(),
|
|
update: jest.fn(),
|
|
};
|
|
};
|