test: add parameter options to usage of type ExecFileFn

This commit is contained in:
Jörg Krzeslak 2025-07-24 18:38:21 +02:00
parent c0f0dc5192
commit 08a833f1cf
22 changed files with 71 additions and 41 deletions

View file

@ -37,6 +37,7 @@ test("convert uses action pdfload with filetype being pdf", async () => {
const mockExecFile: ExecFileFn = (
_cmd: string,
_args: string[],
options: unknown,
callback: (err: ExecFileException | null, stdout: string, stderr: string) => void,
) => {
calls.push(_args);
@ -63,6 +64,7 @@ test("convert uses action copy with filetype being anything but pdf", async () =
const mockExecFile: ExecFileFn = (
_cmd: string,
_args: string[],
options: unknown,
callback: (err: ExecFileException | null, stdout: string, stderr: string) => void,
) => {
calls.push(_args);