diff --git a/packages/typescript/src/test/distest/cjs.test.ts b/packages/typescript/src/test/distest/cjs.test.ts index 083f583..c73f15c 100644 --- a/packages/typescript/src/test/distest/cjs.test.ts +++ b/packages/typescript/src/test/distest/cjs.test.ts @@ -11,9 +11,13 @@ describe("FileforgeClient", () => { }); const response = await ff.pdf.form.mark( - new File([fs.readFileSync(__dirname + "/samples/form.pdf")], "form.pdf", { - type: "application/pdf", - }), + new File( + [fs.readFileSync(__dirname + "/../samples/form.pdf")], + "form.pdf", + { + type: "application/pdf", + }, + ), { options: {} }, ); @@ -26,7 +30,7 @@ describe("FileforgeClient", () => { }); const response = await ff.pdf.form.mark( - fs.createReadStream(__dirname + "/samples/form.pdf"), + fs.createReadStream(__dirname + "/../samples/form.pdf"), {}, ); diff --git a/packages/typescript/src/test/distest/esm.test.ts b/packages/typescript/src/test/distest/esm.test.ts index 1122377..2e952f1 100644 --- a/packages/typescript/src/test/distest/esm.test.ts +++ b/packages/typescript/src/test/distest/esm.test.ts @@ -11,9 +11,13 @@ describe("FileforgeClient", () => { }); const response = await ff.pdf.form.mark( - new File([fs.readFileSync(__dirname + "/samples/form.pdf")], "form.pdf", { - type: "application/pdf", - }), + new File( + [fs.readFileSync(__dirname + "/../samples/form.pdf")], + "form.pdf", + { + type: "application/pdf", + }, + ), { options: {} }, ); @@ -26,7 +30,7 @@ describe("FileforgeClient", () => { }); const response = await ff.pdf.form.mark( - fs.createReadStream(__dirname + "/samples/form.pdf"), + fs.createReadStream(__dirname + "/../samples/form.pdf"), {}, );