mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
22 lines
584 B
TypeScript
22 lines
584 B
TypeScript
|
|
import { ILibraryRepository } from '@app/domain';
|
||
|
|
|
||
|
|
export const newLibraryRepositoryMock = (): jest.Mocked<ILibraryRepository> => {
|
||
|
|
return {
|
||
|
|
get: jest.fn(),
|
||
|
|
getCountForUser: jest.fn(),
|
||
|
|
getAllByUserId: jest.fn(),
|
||
|
|
create: jest.fn(),
|
||
|
|
delete: jest.fn(),
|
||
|
|
softDelete: jest.fn(),
|
||
|
|
update: jest.fn(),
|
||
|
|
getStatistics: jest.fn(),
|
||
|
|
getDefaultUploadLibrary: jest.fn(),
|
||
|
|
getUploadLibraryCount: jest.fn(),
|
||
|
|
getOnlineAssetPaths: jest.fn(),
|
||
|
|
getAssetIds: jest.fn(),
|
||
|
|
existsByName: jest.fn(),
|
||
|
|
getAllDeleted: jest.fn(),
|
||
|
|
getAll: jest.fn(),
|
||
|
|
};
|
||
|
|
};
|