mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Add missing test.
This commit is contained in:
+15
@@ -63,6 +63,21 @@ class DefaultNotificationCreatorTest {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun `test createUnregistrationNotification`() {
|
||||||
|
val sut = createNotificationCreator()
|
||||||
|
val matrixUser = aMatrixUser()
|
||||||
|
val result = sut.createUnregistrationNotification(
|
||||||
|
notificationAccountParams = aNotificationAccountParams(
|
||||||
|
user = matrixUser,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
result.commonAssertions(
|
||||||
|
expectedGroup = matrixUser.userId.value,
|
||||||
|
expectedCategory = NotificationCompat.CATEGORY_ERROR,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test createFallbackNotification`() {
|
fun `test createFallbackNotification`() {
|
||||||
val sut = createNotificationCreator()
|
val sut = createNotificationCreator()
|
||||||
|
|||||||
Reference in New Issue
Block a user