From 79361516a5a56f6bec9a67c1f4ca7d5daecebf01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Sch=C3=B6nb=C3=A4chler?= <42278642+schoero@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:22:12 +0100 Subject: [PATCH] fix: visual pdf tests throwing error --- tests/utils/pdf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/pdf.ts b/tests/utils/pdf.ts index 0f2c637..a9b8bf6 100644 --- a/tests/utils/pdf.ts +++ b/tests/utils/pdf.ts @@ -24,7 +24,7 @@ export class TestDocument extends PDFDocument { constructor(testDocumentName: TestDocumentName, options?: PDFKit.PDFDocumentOptions) { super({ ...options, bufferPages: true, compress: false }); this.testDocumentName = testDocumentName; - this.info.CreationDate = undefined; + this.info.CreationDate = new Date(0); } public async writeFile() {