A fully functional Android app built entirely with Kotlin and Jetpack Compose
InterstsViewModelTest fix spotless Issue
saeedishayan766f40606c5488
diff --git a/feature/interests/src/test/kotlin/com/google/samples/apps/nowinandroid/interests/InterestsViewModelTest.kt b/feature/interests/src/test/kotlin/com/google/samples/apps/nowinandroid/interests/InterestsViewModelTest.ktindex 3cf8d825b..cdf21f325 100644--- a/feature/interests/src/test/kotlin/com/google/samples/apps/nowinandroid/interests/InterestsViewModelTest.kt+++ b/feature/interests/src/test/kotlin/com/google/samples/apps/nowinandroid/interests/InterestsViewModelTest.kt@@ -80,7 +80,7 @@ class InterestsViewModelTest {@Testfun uiState_whenFollowedTopicsAreLoading_thenShowLoading() = runTest {- backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.uiState.collect() }+ backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.uiState.collect() }userDataRepository.setFollowedTopicIds(emptySet())assertEquals(InterestsUiState.Loading, viewModel.uiState.value)@@ -88,7 +88,7 @@ class InterestsViewModelTest {@Testfun uiState_whenFollowingNewTopic_thenShowUpdatedTopics() = runTest {- backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.uiState.collect() }+ backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.uiState.collect() }val toggleTopicId = testOutputTopics[1].topic.idtopicsRepository.sendTopics(testInputTopics.map { it.topic })@@ -116,7 +116,7 @@ class InterestsViewModelTest {@Testfun uiState_whenUnfollowingTopics_thenShowUpdatedTopics() = runTest {- backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.uiState.collect() }+ backgroundScope.launch(UnconfinedTestDispatcher()) { viewModel.uiState.collect() }val toggleTopicId = testOutputTopics[1].topic.id