test: follow the mention target setting in the composer wiring check

This commit is contained in:
Linus Rath
2026-10-31 16:30:59 +01:00
parent 48e427bfa1
commit 22893d327f
@@ -21,7 +21,7 @@ describe('ComposeScreen mention wiring', () => {
expect(items).toMatch(/\.\.\.bccRecipients/); expect(items).toMatch(/\.\.\.bccRecipients/);
expect(items).toMatch(/primaryIdentity\?\.bcc/); expect(items).toMatch(/primaryIdentity\?\.bcc/);
expect(items).toMatch(/!onMessage\.has\(s\.email\.trim\(\)\.toLowerCase\(\)\)/); 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', () => { it('inserts the picked mention as a mailto link and adds a contact to To', () => {