Skip to content

Commit

Permalink
Fix for test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-chernysh committed Dec 2, 2024
1 parent 9b25e93 commit dbe178c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import org.junit.After
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Test
import kotlin.test.assertEquals


class PeopleListViewModelTest {
Expand All @@ -53,10 +54,8 @@ class PeopleListViewModelTest {

@Test
fun stateTest() = runTest {

vm.uiState.test {
// assertEquals("State is not Loading", PeopleProfileUIState.Loading, awaitItem())

assertEquals(PeopleProfileUIState.Loading, awaitItem())
assertTrue(
"People list is empty",
(awaitItem() as PeopleProfileUIState.Success).profileList.isNotEmpty()
Expand Down

0 comments on commit dbe178c

Please sign in to comment.