Add missing test.
This commit is contained in:
parent
c453d2adac
commit
c7d4689473
1 changed files with 15 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue