Skip to content

Commit 63090ef

Browse files
committed
updating tests with shortcut placement changes
1 parent 6fb7faa commit 63090ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vector/src/test/java/im/vector/app/features/notifications/NotificationRendererTest.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package im.vector.app.features.notifications
1818

1919
import android.app.Notification
20+
import im.vector.app.test.fakes.FakeContext
2021
import im.vector.app.test.fakes.FakeNotificationDisplayer
2122
import im.vector.app.test.fakes.FakeNotificationFactory
2223
import io.mockk.mockk
@@ -41,12 +42,14 @@ private val ONE_SHOT_META = OneShotNotification.Append.Meta(key = "ignored", sum
4142

4243
class NotificationRendererTest {
4344

45+
private val context = FakeContext()
4446
private val notificationDisplayer = FakeNotificationDisplayer()
4547
private val notificationFactory = FakeNotificationFactory()
4648

4749
private val notificationRenderer = NotificationRenderer(
4850
notificationDisplayer = notificationDisplayer.instance,
49-
notificationFactory = notificationFactory.instance
51+
notificationFactory = notificationFactory.instance,
52+
appContext = context.instance
5053
)
5154

5255
@Test
@@ -87,6 +90,7 @@ class NotificationRendererTest {
8790
fun `given a room message group notification is added when rendering then show the message notification and update summary`() {
8891
givenNotifications(roomNotifications = listOf(RoomNotification.Message(
8992
A_NOTIFICATION,
93+
shortcutInfo = null,
9094
MESSAGE_META
9195
)))
9296

0 commit comments

Comments
 (0)