diff --git a/client/src/components/PDF/TripPDF.test.ts b/client/src/components/PDF/TripPDF.test.ts index 950cae85a..6f33da5bb 100644 --- a/client/src/components/PDF/TripPDF.test.ts +++ b/client/src/components/PDF/TripPDF.test.ts @@ -401,9 +401,9 @@ describe('downloadTripPDF', () => { it('FE-COMP-TRIPPDF-016c: renders markdown in a place description, sanitized', async () => { const description = ['**Colosseum** tickets', '', '| Gate | Time |', '| --- | --- |', '| A | 9:00 |', '', ''].join('\n') const place = { ...placeWithDetails, description } - const md = { ...richArgs, places: [place], assignments: { '10': [{ ...assignmentForDay, place }] } } - await downloadTripPDF(md as any) - const html = getIframe()!.srcdoc + const md = { ...richArgs, places: [place], assignments: { '10': [{ ...assignmentForDay, place }] } as typeof richArgs.assignments } + await downloadTripPDF(md) + const html = getIframe()?.srcdoc ?? '' expect(html).toContain('Colosseum') expect(html).toContain('