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', () => {