Add missing test.
This commit is contained in:
parent
eff4766693
commit
92c02fdd68
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
|
@Test
|
||||||
fun `test createFallbackNotification`() {
|
fun `test createFallbackNotification`() {
|
||||||
val sut = createNotificationCreator()
|
val sut = createNotificationCreator()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue