TF-4367 Add test case for Emails with Re\u00A0: / Tr\u00A0:.

This commit is contained in:
dab246
2026-03-10 14:57:21 +07:00
committed by Dat H. Pham
parent a8e0bf6167
commit a838912f5c
@@ -65,6 +65,19 @@ void main() {
expect(result, subjectWithPrefix);
});
test('Reply: does not dedupe legacy French NBSP prefix', () {
const original = 'Re\u00A0: Legacy subject';
final result = EmailActionType.reply.getSubjectComposer(null, original);
expect(result, 'Re: $original');
});
test('Forward: does not dedupe legacy French NBSP prefix', () {
const original = 'Tr\u00A0: Legacy subject';
final result =
EmailActionType.forward.getSubjectComposer(null, original);
expect(result, 'Fwd: $original');
});
});
group('forward actions', () {