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

@ -121,7 +121,7 @@ export async function convert(
execFile: ExecFileFn = execFileOriginal, // to make it mockable
): Promise<string> {
return new Promise((resolve, reject) => {
execFile("assimp", ["export", filePath, targetPath], (error, stdout, stderr) => {
execFile("assimp", ["export", filePath, targetPath], options, (error, stdout, stderr) => {
if (error) {
reject(`error: ${error}`);
}