diff --git a/test/event_test.dart b/test/event_test.dart index 0117d58c..5d0120be 100644 --- a/test/event_test.dart +++ b/test/event_test.dart @@ -1058,7 +1058,17 @@ void main() { expect( event.getLocalizedBody(MatrixDefaultLocalizations(), removeMarkdown: true, plaintextBody: true), - 'Title\nsome text and 🔗link\nokay and this is important'); + 'Title\nsome text and 🔗link\nokay and this is important'); + expect( + event.getLocalizedBody(MatrixDefaultLocalizations(), + removeMarkdown: true, withSenderNamePrefix: true), + 'Example: Title\nsome text and link\nokay and this is important'); + expect( + event.getLocalizedBody(MatrixDefaultLocalizations(), + removeMarkdown: true, + plaintextBody: true, + withSenderNamePrefix: true), + 'Example: Title\nsome text and 🔗link\nokay and this is important'); }); test('aggregations', () {