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.
This commit is contained in:
parent
9ce6c97772
commit
fc7043b364
2 changed files with 3 additions and 1 deletions
|
|
@ -84,6 +84,7 @@ const baseCustomer: Customer = {
|
|||
};
|
||||
|
||||
const baseQuote: Quote = {
|
||||
email_to: "",
|
||||
id: "q1",
|
||||
collectionId: "pbc_quotes",
|
||||
collectionName: "quotes",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue