|
|
@ -143,7 +143,7 @@ class SearchViewModelTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun stateIsEmptyQuery_withThreeWhiteSpacesSearchQuery() = runTest {
|
|
|
|
fun searchTextWithThreeSpaces_isEmptyQuery() = runTest {
|
|
|
|
searchContentsRepository.addNewsResources(newsResourcesTestData)
|
|
|
|
searchContentsRepository.addNewsResources(newsResourcesTestData)
|
|
|
|
searchContentsRepository.addTopics(topicsTestData)
|
|
|
|
searchContentsRepository.addTopics(topicsTestData)
|
|
|
|
val collectJob = launch(UnconfinedTestDispatcher()) { viewModel.searchResultUiState.collect() }
|
|
|
|
val collectJob = launch(UnconfinedTestDispatcher()) { viewModel.searchResultUiState.collect() }
|
|
|
|