mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-10-29 00:04:54 +01:00
2135c6b9f1
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
16 lines
550 B
TypeScript
16 lines
550 B
TypeScript
import { expect, test } from "bun:test";
|
|
|
|
import { convert } from "../../src/converters/libheif";
|
|
import { runCommonTests } from "./helpers/commonTests";
|
|
import { createMockExecFile } from "./helpers/converters";
|
|
|
|
runCommonTests(convert);
|
|
|
|
test("invokes heif-convert with input and target path", async () => {
|
|
const { execFile, calls } = createMockExecFile();
|
|
|
|
await convert("in/photo.heic", "heic", "jpeg", "out/photo.jpg", undefined, execFile);
|
|
|
|
expect(calls).toEqual([{ cmd: "heif-convert", args: ["in/photo.heic", "out/photo.jpg"] }]);
|
|
});
|