test: follow the text part options in the composer wiring check

This commit is contained in:
Linus Rath
2026-10-31 04:08:58 +01:00
parent 2951672548
commit 813be0c10f
@@ -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,/);
});
});