From 813be0c10f9bf6b294d2db1961d67f9898df9b68 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sat, 31 Oct 2026 04:08:58 +0100 Subject: [PATCH] test: follow the text part options in the composer wiring check --- src/lib/__tests__/compose-screen-wiring.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/__tests__/compose-screen-wiring.test.ts b/src/lib/__tests__/compose-screen-wiring.test.ts index ecb59ed5..957551f4 100644 --- a/src/lib/__tests__/compose-screen-wiring.test.ts +++ b/src/lib/__tests__/compose-screen-wiring.test.ts @@ -60,6 +60,6 @@ describe('ComposeScreen wiring', () => { it('writes the text part of a rich message with mail markup', () => { const build = source.slice(source.indexOf('const buildOutgoing'), source.indexOf('// Save one draft version')); - expect(build).toMatch(/textBody = htmlToPlainText\(safeHtml, \{ mailMarkup: true \}\);/); + expect(build).toMatch(/textBody = htmlToPlainText\(safeHtml, \{\s+mailMarkup: true,/); }); });