Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Jun 25, 2024
1 parent 0cacbfc commit c9ee2c3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,11 @@ class SharedCallingViewModelTest {
@Test
fun `given a call, when setVideoPreview is called, then set the video preview`() = runTest {
coEvery { setVideoPreview(any(), any()) } returns Unit
coEvery { updateVideoState(any(), any()) } returns Unit

sharedCallingViewModel.setVideoPreview(view)
advanceUntilIdle()

coVerify(exactly = 2) { setVideoPreview(any(), any()) }
coVerify(exactly = 1) { updateVideoState(any(), VideoState.STARTED) }
}

@Test
Expand Down

0 comments on commit c9ee2c3

Please sign in to comment.