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/push/impl/src/test/kotlin/io/element/android/libraries/push/impl/notifications/DefaultNotifiableEventResolverTest.kt
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -378,6 +378,22 @@ class DefaultNotifiableEventResolverTest {
378
378
)
379
379
)
380
380
val result = sut.resolveEvent(A_SESSION_ID, A_ROOM_ID, AN_EVENT_ID)
381
+
assertThat(result).isNull()
382
+
}
383
+
384
+
@Test
385
+
fun`resolve invite room`() = runTest {
386
+
val sut = createDefaultNotifiableEventResolver(
387
+
notificationResult =Result.success(
388
+
createNotificationData(
389
+
content =NotificationContent.Invite(
390
+
senderId =A_USER_ID_2,
391
+
),
392
+
isDirect =false,
393
+
)
394
+
)
395
+
)
396
+
val result = sut.resolveEvent(A_SESSION_ID, A_ROOM_ID, AN_EVENT_ID)
381
397
val expectedResult =ResolvedPushEvent.Event(
382
398
InviteNotifiableEvent(
383
399
sessionId =A_SESSION_ID,
@@ -400,13 +416,12 @@ class DefaultNotifiableEventResolverTest {
0 commit comments