Add missing test.

This commit is contained in:
Benoit Marty
2025-11-13 15:39:20 +01:00
parent eff4766693
commit 92c02fdd68

View File

@@ -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
fun `test createFallbackNotification`() {
val sut = createNotificationCreator()