mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix test compilation issue.
This commit is contained in:
committed by
Benoit Marty
parent
1d6b479d38
commit
ac9689fae9
+3
-3
@@ -29,7 +29,7 @@ class NotificationDataTest {
|
|||||||
senderDisplayName = null,
|
senderDisplayName = null,
|
||||||
senderIsNameAmbiguous = false,
|
senderIsNameAmbiguous = false,
|
||||||
)
|
)
|
||||||
assertThat(sut.getSenderName(A_USER_ID)).isEqualTo("@alice:server.org")
|
assertThat(sut.getDisambiguatedDisplayName(A_USER_ID)).isEqualTo("@alice:server.org")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -38,7 +38,7 @@ class NotificationDataTest {
|
|||||||
senderDisplayName = "Alice",
|
senderDisplayName = "Alice",
|
||||||
senderIsNameAmbiguous = false,
|
senderIsNameAmbiguous = false,
|
||||||
)
|
)
|
||||||
assertThat(sut.getSenderName(A_USER_ID)).isEqualTo("Alice")
|
assertThat(sut.getDisambiguatedDisplayName(A_USER_ID)).isEqualTo("Alice")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -47,7 +47,7 @@ class NotificationDataTest {
|
|||||||
senderDisplayName = "Alice",
|
senderDisplayName = "Alice",
|
||||||
senderIsNameAmbiguous = true,
|
senderIsNameAmbiguous = true,
|
||||||
)
|
)
|
||||||
assertThat(sut.getSenderName(A_USER_ID)).isEqualTo("Alice (@alice:server.org)")
|
assertThat(sut.getDisambiguatedDisplayName(A_USER_ID)).isEqualTo("Alice (@alice:server.org)")
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun aNotificationData(
|
private fun aNotificationData(
|
||||||
|
|||||||
Reference in New Issue
Block a user