You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OneSignalSDK/onesignal/notifications/src/test/java/com/onesignal/notifications/internal/lifecycle/NotificationLifecycleServiceTests.kt
+45-3Lines changed: 45 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ import io.mockk.coVerify
23
23
importio.mockk.every
24
24
importio.mockk.mockk
25
25
importio.mockk.spyk
26
+
importkotlinx.coroutines.delay
27
+
importkotlinx.coroutines.withTimeout
26
28
importorg.json.JSONArray
27
29
importorg.json.JSONObject
28
30
importorg.robolectric.Robolectric
@@ -59,7 +61,11 @@ private class Mocks {
59
61
every { deviceType } returns IDeviceService.DeviceType.Android
60
62
},
61
63
mockk<INotificationBackendService>().apply {
62
-
coEvery { updateNotificationAsOpened(any(), any(), any(), any()) } returns Unit
0 commit comments