TF-4367 Add test case for Emails with Re\u00A0: / Tr\u00A0:.
This commit is contained in:
@@ -65,6 +65,19 @@ void main() {
|
|||||||
|
|
||||||
expect(result, subjectWithPrefix);
|
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', () {
|
group('forward actions', () {
|
||||||
|
|||||||
Reference in New Issue
Block a user