mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 05:05:20 +00:00
remove tests
This commit is contained in:
@@ -107,38 +107,4 @@ class NotificationManagerTest {
|
|||||||
notificationManager.showActiveUserNotification(listOf("peer-3"))
|
notificationManager.showActiveUserNotification(listOf("peer-3"))
|
||||||
verify(notificationManagerCompat, times(1)).notify(any(), any())
|
verify(notificationManagerCompat, times(1)).notify(any(), any())
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
fun `geohash notification includes location name when available`() {
|
|
||||||
notificationManager.setAppBackgroundState(true)
|
|
||||||
notificationManager.setCurrentGeohash("abc123")
|
|
||||||
|
|
||||||
notificationManager.showGeohashNotification(
|
|
||||||
geohash = "abc123",
|
|
||||||
senderNickname = "testuser",
|
|
||||||
messageContent = "Hello world",
|
|
||||||
isMention = false,
|
|
||||||
isFirstMessage = false,
|
|
||||||
locationName = "San Francisco"
|
|
||||||
)
|
|
||||||
|
|
||||||
verify(notificationManagerCompat, times(1)).notify(any(), any())
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
fun `geohash notification works without location name`() {
|
|
||||||
notificationManager.setAppBackgroundState(true)
|
|
||||||
notificationManager.setCurrentGeohash("abc123")
|
|
||||||
|
|
||||||
notificationManager.showGeohashNotification(
|
|
||||||
geohash = "abc123",
|
|
||||||
senderNickname = "testuser",
|
|
||||||
messageContent = "Hello world",
|
|
||||||
isMention = false,
|
|
||||||
isFirstMessage = false,
|
|
||||||
locationName = null
|
|
||||||
)
|
|
||||||
|
|
||||||
verify(notificationManagerCompat, times(1)).notify(any(), any())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user