mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-03-03 02:47:02 +00:00
test: add unit test for inkscape.ts
This commit is contained in:
19
tests/converters/inkscape.test.ts
Normal file
19
tests/converters/inkscape.test.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { test } from "bun:test";
|
||||
import { convert } from "../../src/converters/inkscape.ts";
|
||||
import {
|
||||
runConvertFailTest,
|
||||
runConvertLogsStderror,
|
||||
runConvertSuccessTest,
|
||||
} from "./helpers/converters.ts";
|
||||
|
||||
test("convert resolves when execFile succeeds", async () => {
|
||||
await runConvertSuccessTest(convert);
|
||||
});
|
||||
|
||||
test("convert rejects when execFile fails", async () => {
|
||||
await runConvertFailTest(convert);
|
||||
});
|
||||
|
||||
test("convert logs stderr when present", async () => {
|
||||
await runConvertLogsStderror(convert);
|
||||
});
|
||||
Reference in New Issue
Block a user