From f095cbe29d09e48630b129c37646a51c9c21016d Mon Sep 17 00:00:00 2001 From: "h.carnot" Date: Fri, 18 Mar 2022 11:45:08 +0100 Subject: [PATCH] feat: add some more tests --- test/event_test.dart | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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', () {