mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
431ffebddd
* extract embedded * update api * add tests * move temp file logic outside of media repo * formatting * revert `toSorted` * disable by default * clarify setting description * wording * wording * update docs * check extracted image dimensions * test that it unlinks * formatting --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
14 lines
424 B
TypeScript
14 lines
424 B
TypeScript
import { IMediaRepository } from 'src/interfaces/media.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newMediaRepositoryMock = (): Mocked<IMediaRepository> => {
|
|
return {
|
|
generateThumbhash: vitest.fn(),
|
|
extract: vitest.fn().mockResolvedValue(false),
|
|
resize: vitest.fn(),
|
|
crop: vitest.fn(),
|
|
probe: vitest.fn(),
|
|
transcode: vitest.fn(),
|
|
getImageDimensions: vitest.fn(),
|
|
};
|
|
};
|