test: add unit test for vips.ts
This commit is contained in:
parent
d8cbc0aaee
commit
9f6b815197
2 changed files with 82 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { execFile } from "node:child_process";
|
||||
import { execFile as execFileOriginal } from "node:child_process";
|
||||
import { ExecFileFn } from "./types.ts";
|
||||
|
||||
// declare possible conversions
|
||||
export const properties = {
|
||||
|
|
@ -94,8 +95,8 @@ export function convert(
|
|||
fileType: string,
|
||||
convertTo: string,
|
||||
targetPath: string,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
options?: unknown,
|
||||
execFile: ExecFileFn = execFileOriginal,
|
||||
): Promise<string> {
|
||||
// if (fileType === "svg") {
|
||||
// const scale = options.scale || 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue