|
|
@ -108,7 +108,6 @@ class ForYouViewModelTest {
|
|
|
|
viewModel.onboardingUiState.value,
|
|
|
|
viewModel.onboardingUiState.value,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
assertEquals(NewsFeedUiState.Loading, viewModel.feedState.value)
|
|
|
|
assertEquals(NewsFeedUiState.Loading, viewModel.feedState.value)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -121,7 +120,6 @@ class ForYouViewModelTest {
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
viewModel.isSyncing.value,
|
|
|
|
viewModel.isSyncing.value,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -140,7 +138,6 @@ class ForYouViewModelTest {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun onboardingIsShownWhenNewsResourcesAreLoading() = runTest {
|
|
|
|
fun onboardingIsShownWhenNewsResourcesAreLoading() = runTest {
|
|
|
|
|
|
|
|
|
|
|
|
backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.onboardingUiState.collect() }
|
|
|
|
backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.onboardingUiState.collect() }
|
|
|
|
backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.feedState.collect() }
|
|
|
|
backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.feedState.collect() }
|
|
|
|
|
|
|
|
|
|
|
@ -250,7 +247,6 @@ class ForYouViewModelTest {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
viewModel.feedState.value,
|
|
|
|
viewModel.feedState.value,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -283,8 +279,6 @@ class ForYouViewModelTest {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
viewModel.feedState.value,
|
|
|
|
viewModel.feedState.value,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -434,7 +428,6 @@ class ForYouViewModelTest {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
viewModel.feedState.value,
|
|
|
|
viewModel.feedState.value,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -474,7 +467,6 @@ class ForYouViewModelTest {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|