Skip to content

Commit

Permalink
Fixes test artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Titou325 committed Jun 3, 2024
1 parent d76a24e commit adc5de8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions packages/typescript/src/test/distest/cjs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {} },
);

Expand All @@ -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"),
{},
);

Expand Down
12 changes: 8 additions & 4 deletions packages/typescript/src/test/distest/esm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {} },
);

Expand All @@ -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"),
{},
);

Expand Down

0 comments on commit adc5de8

Please sign in to comment.