1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-23 02:06:15 +02:00
immich/server/test/repositories/media.repository.mock.ts

12 lines
271 B
TypeScript
Raw Normal View History

import { IMediaRepository } from '@app/domain';
export const newMediaRepositoryMock = (): jest.Mocked<IMediaRepository> => {
return {
generateThumbhash: jest.fn(),
resize: jest.fn(),
2023-05-17 19:07:17 +02:00
crop: jest.fn(),
probe: jest.fn(),
transcode: jest.fn(),
};
};