From fc7043b3643b31bd81c7f14da540949ce0c59b85 Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 5 Nov 2026 00:40:47 +0200 Subject: [PATCH] fix(pdf): add the missing email_to to the quote fixtures Quote requires email_to, so both PDF fixtures failed to type check. Add the field and the two long-standing errors in tsc --noEmit are gone. --- src/lib/pdf/quote-document.test.tsx | 1 + src/lib/pdf/render.test.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/pdf/quote-document.test.tsx b/src/lib/pdf/quote-document.test.tsx index cfa2f4f..b55be16 100644 --- a/src/lib/pdf/quote-document.test.tsx +++ b/src/lib/pdf/quote-document.test.tsx @@ -84,6 +84,7 @@ const baseCustomer: Customer = { }; const baseQuote: Quote = { + email_to: "", id: "q1", collectionId: "pbc_quotes", collectionName: "quotes", diff --git a/src/lib/pdf/render.test.ts b/src/lib/pdf/render.test.ts index 1d5835f..f4365a1 100644 --- a/src/lib/pdf/render.test.ts +++ b/src/lib/pdf/render.test.ts @@ -93,6 +93,7 @@ const baseCustomer: Customer = { }; const baseQuote: Quote = { + email_to: "", id: "q1", collectionId: "pbc_quotes", collectionName: "quotes", @@ -444,4 +445,4 @@ describe("renderStockItemStocktakePdf", () => { }); expect(buf.subarray(0, 5).toString("ascii")).toBe("%PDF-"); }, 30_000); -}); \ No newline at end of file +});