diff --git a/test/features/composer/presentation/extensions/get_subject_composer_test.dart b/test/features/composer/presentation/extensions/get_subject_composer_test.dart index 7a321d1d7..2a71f8008 100644 --- a/test/features/composer/presentation/extensions/get_subject_composer_test.dart +++ b/test/features/composer/presentation/extensions/get_subject_composer_test.dart @@ -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', () {