From 22893d327ff84aa9e8f877793ba1fb4b40702d37 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sat, 31 Oct 2026 16:30:59 +0100 Subject: [PATCH] test: follow the mention target setting in the composer wiring check --- src/lib/__tests__/compose-mentions-wiring.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/__tests__/compose-mentions-wiring.test.ts b/src/lib/__tests__/compose-mentions-wiring.test.ts index f4957688..38fc5a0d 100644 --- a/src/lib/__tests__/compose-mentions-wiring.test.ts +++ b/src/lib/__tests__/compose-mentions-wiring.test.ts @@ -21,7 +21,7 @@ describe('ComposeScreen mention wiring', () => { expect(items).toMatch(/\.\.\.bccRecipients/); expect(items).toMatch(/primaryIdentity\?\.bcc/); expect(items).toMatch(/!onMessage\.has\(s\.email\.trim\(\)\.toLowerCase\(\)\)/); - expect(items).toMatch(/mentionSuggestions\(mentionCandidates, contacts, mentionQuery, 'to'\)/); + expect(items).toMatch(/mentionSuggestions\(mentionCandidates, contacts, mentionQuery, mentionAddsRecipientTo === 'cc' \? 'cc' : 'to'\)/); }); it('inserts the picked mention as a mailto link and adds a contact to To', () => {