feat: add some more tests

This commit is contained in:
h.carnot 2022-03-18 11:45:08 +01:00
parent b47a5f8dff
commit f095cbe29d
1 changed files with 11 additions and 1 deletions

View File

@ -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', () {