immich/server/libs/domain/test/album.repository.mock.ts

18 lines
439 B
TypeScript
Raw Normal View History

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(),
2023-05-24 19:10:45 -07:00
create: jest.fn(),
save: jest.fn(),
};
};