You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/eventformatter/impl/src/test/kotlin/io/element/android/libraries/eventformatter/impl/DefaultRoomLastMessageFormatterTests.kt
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -202,10 +202,11 @@ class DefaultRoomLastMessageFormatterTests {
202
202
isFileMessageType->"File"
203
203
isLocationMessageType->"Shared location"
204
204
isEmoteMessageType->"* $senderName${type.body}"
205
-
isTextMessageType, isNoticeMessageType-> body
206
-
UnknownMessageType->"Unsupported event"
205
+
isTextMessageType,
206
+
isNoticeMessageType,
207
+
UnknownMessageType-> body
207
208
}
208
-
Truth.assertWithMessage("$type was not properly handled").that(result).isEqualTo(expectedResult)
209
+
Truth.assertWithMessage("$type was not properly handled for DM").that(result).isEqualTo(expectedResult)
209
210
}
210
211
211
212
// Verify results of Room mode
@@ -217,9 +218,10 @@ class DefaultRoomLastMessageFormatterTests {
0 commit comments