Skip to content

Commit 001ee12

Browse files
committed
fix test fail in runner
1 parent e5f97b7 commit 001ee12

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

OneSignalSDK/onesignal/in-app-messages/src/test/java/com/onesignal/inAppMessages/internal/InAppMessagesManagerTests.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,8 +1369,7 @@ class InAppMessagesManagerTests : FunSpec({
13691369

13701370
every { mockClickResult.prompts } returns mutableListOf(mockPrompt)
13711371
every { mockPrompt.hasPrompted() } returns false
1372-
every { mockPrompt.setPrompted(true) } just runs
1373-
coEvery { mockPrompt.handlePrompt() } returns InAppMessagePrompt.PromptActionResult.PERMISSION_GRANTED
1372+
every { mockPrompt.setPrompted(any()) } just runs
13741373
// currentPrompt starts as null, then gets set to the prompt during processing
13751374
var currentPrompt: InAppMessagePrompt? = null
13761375
every { mockState.currentPrompt } answers { currentPrompt }
@@ -1382,7 +1381,7 @@ class InAppMessagesManagerTests : FunSpec({
13821381

13831382
// Then
13841383
coVerify { mockDisplayer.dismissCurrentInAppMessage() }
1385-
coVerify { mockPrompt.handlePrompt() }
1384+
coVerify { mockPrompt.setPrompted(any()) }
13861385
}
13871386

13881387
test("onMessageActionOccurredOnMessage does nothing when prompts list is empty") {

0 commit comments

Comments
 (0)