mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
1167f0f2b7
* do crop and resize together * redundant `pipelineColorspace` call * formatting * fix rebase * handle orientation * remove unused import * formatting * use oriented dimensions for half size calculation * default case for orientation * simplify orientation code --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
13 lines
412 B
TypeScript
13 lines
412 B
TypeScript
import { IMediaRepository } from 'src/interfaces/media.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newMediaRepositoryMock = (): Mocked<IMediaRepository> => {
|
|
return {
|
|
generateThumbnail: vitest.fn(),
|
|
generateThumbhash: vitest.fn(),
|
|
extract: vitest.fn().mockResolvedValue(false),
|
|
probe: vitest.fn(),
|
|
transcode: vitest.fn(),
|
|
getImageDimensions: vitest.fn(),
|
|
};
|
|
};
|