remove blank lines for resolve spotless error

pull/1585/head
saeedishayan76 2 months ago
parent 0356b873e9
commit 26dd4424f6

@ -71,7 +71,6 @@ class BookmarksViewModelTest {
val item = viewModel.feedUiState.value val item = viewModel.feedUiState.value
assertIs<Success>(item) assertIs<Success>(item)
assertEquals(item.feed.size, 1) assertEquals(item.feed.size, 1)
} }
@Test @Test
@ -87,6 +86,5 @@ class BookmarksViewModelTest {
val item = viewModel.feedUiState.value val item = viewModel.feedUiState.value
assertIs<Success>(item) assertIs<Success>(item)
assertEquals(item.feed.size, 0) assertEquals(item.feed.size, 0)
} }
} }

@ -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

@ -112,7 +112,6 @@ class InterestsViewModelTest {
), ),
viewModel.uiState.value, viewModel.uiState.value,
) )
} }
@Test @Test

@ -106,13 +106,11 @@ class SearchViewModelTest {
@Test @Test
fun recentSearches_verifyUiStateIsSuccess() = runTest { fun recentSearches_verifyUiStateIsSuccess() = runTest {
backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.recentSearchQueriesUiState.collect() } backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.recentSearchQueriesUiState.collect() }
viewModel.onSearchTriggered("kotlin") viewModel.onSearchTriggered("kotlin")
val result = viewModel.recentSearchQueriesUiState.value val result = viewModel.recentSearchQueriesUiState.value
assertIs<Success>(result) assertIs<Success>(result)
} }
@Test @Test
@ -122,7 +120,6 @@ class SearchViewModelTest {
viewModel.onSearchQueryChanged("") viewModel.onSearchQueryChanged("")
assertEquals(SearchNotReady, viewModel.searchResultUiState.value) assertEquals(SearchNotReady, viewModel.searchResultUiState.value)
} }
@Test @Test

@ -67,6 +67,5 @@ class SettingsViewModelTest {
), ),
viewModel.settingsUiState.value, viewModel.settingsUiState.value,
) )
} }
} }

@ -97,7 +97,6 @@ class TopicViewModelTest {
).first() ).first()
assertEquals(topicFromRepository, item.followableTopic.topic) assertEquals(topicFromRepository, item.followableTopic.topic)
} }
@Test @Test
@ -116,7 +115,6 @@ class TopicViewModelTest {
userDataRepository.setFollowedTopicIds(setOf(testInputTopics[1].topic.id)) userDataRepository.setFollowedTopicIds(setOf(testInputTopics[1].topic.id))
assertEquals(TopicUiState.Loading, viewModel.topicUiState.value) assertEquals(TopicUiState.Loading, viewModel.topicUiState.value)
} }
@Test @Test
@ -131,7 +129,6 @@ class TopicViewModelTest {
assertIs<TopicUiState.Success>(topicUiState) assertIs<TopicUiState.Success>(topicUiState)
assertIs<NewsUiState.Loading>(newsUiState) assertIs<NewsUiState.Loading>(newsUiState)
} }
@Test @Test
@ -152,7 +149,6 @@ class TopicViewModelTest {
assertIs<TopicUiState.Success>(topicUiState) assertIs<TopicUiState.Success>(topicUiState)
assertIs<NewsUiState.Success>(newsUiState) assertIs<NewsUiState.Success>(newsUiState)
} }
@Test @Test
@ -169,7 +165,6 @@ class TopicViewModelTest {
TopicUiState.Success(followableTopic = testOutputTopics[0]), TopicUiState.Success(followableTopic = testOutputTopics[0]),
viewModel.topicUiState.value, viewModel.topicUiState.value,
) )
} }
} }

Loading…
Cancel
Save