|
|
@ -156,7 +156,7 @@ class SearchViewModelTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun stateIsEmptyQuery_withThreeWhiteSpacesAndOneLetterSearchQuery() = runTest {
|
|
|
|
fun searchTextWithThreeWhiteSpacesAndOneCharacter_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() }
|
|
|
|