mirror of
https://github.com/immich-app/immich.git
synced 2024-11-17 19:08:49 -07:00
48393c215b
* refactor(server): video transcode processor * refactor: rename shouldRotate to isVideoVertical, remove unnecessary await * refactor: rename getOptions to getFfmpegOptions to be clearer in that context * fix: optimal preset converting vertical videos already smaller than target resolution --------- Co-authored-by: Zack Pollard <zackpollard@ymail.com>
12 lines
290 B
TypeScript
12 lines
290 B
TypeScript
import { IMediaRepository } from '../src';
|
|
|
|
export const newMediaRepositoryMock = (): jest.Mocked<IMediaRepository> => {
|
|
return {
|
|
extractThumbnailFromExif: jest.fn(),
|
|
extractVideoThumbnail: jest.fn(),
|
|
resize: jest.fn(),
|
|
probe: jest.fn(),
|
|
transcode: jest.fn(),
|
|
};
|
|
};
|