1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-27 10:58:13 +02:00
immich/server/test/repositories/library.repository.mock.ts

19 lines
488 B
TypeScript
Raw Normal View History

import { ILibraryRepository } from '@app/domain';
export const newLibraryRepositoryMock = (): jest.Mocked<ILibraryRepository> => {
return {
get: jest.fn(),
getCountForUser: jest.fn(),
create: jest.fn(),
delete: jest.fn(),
softDelete: jest.fn(),
update: jest.fn(),
getStatistics: jest.fn(),
getDefaultUploadLibrary: jest.fn(),
getUploadLibraryCount: jest.fn(),
getAssetIds: jest.fn(),
getAllDeleted: jest.fn(),
getAll: jest.fn(),
};
};