mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
b588a87d4a
rename domain repositories
18 lines
509 B
TypeScript
18 lines
509 B
TypeScript
import { ILibraryRepository } from 'src/interfaces/library.interface';
|
|
|
|
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(),
|
|
};
|
|
};
|