aboutsummaryrefslogtreecommitdiffstats
path: root/packages/e2e_tests/utils/assets.ts
blob: efcfec81eaae1ad9fd39311a036089296c126437 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import * as fs from "fs";
import * as path from "path";

const pdfFixturePath = path.join(__dirname, "..", "fixtures", "test.pdf");
const pdfContent = fs.readFileSync(pdfFixturePath);

export function createTestPdfFile(fileName = "test.pdf"): File {
  return new File([pdfContent], fileName, {
    type: "application/pdf",
  });
}