Files
ConvertX/tests/converters/inkscape.test.ts
Emrik Östling 2135c6b9f1 chore: use bun fmt and bun check (#685)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-23 18:23:49 +02:00

16 lines
556 B
TypeScript

import { expect, test } from "bun:test";
import { convert } from "../../src/converters/inkscape";
import { runCommonTests } from "./helpers/commonTests";
import { createMockExecFile } from "./helpers/converters";
runCommonTests(convert);
test("invokes inkscape with input and -o target path", async () => {
const { execFile, calls } = createMockExecFile();
await convert("in/drawing.svg", "svg", "png", "out/drawing.png", undefined, execFile);
expect(calls).toEqual([{ cmd: "inkscape", args: ["in/drawing.svg", "-o", "out/drawing.png"] }]);
});