Skip to content

Commit 82bf5ed

Browse files
committed
Address detekt issues
1 parent fbc2040 commit 82bf5ed

1 file changed

Lines changed: 16 additions & 19 deletions

File tree

WordPress/src/test/java/org/wordpress/android/ui/voicetocontent/VoiceToContentViewModelTest.kt

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
package org.wordpress.android.ui.voicetocontent
22

3-
import kotlinx.coroutines.CoroutineScope
43
import kotlinx.coroutines.ExperimentalCoroutinesApi
54
import kotlinx.coroutines.flow.flow
6-
import kotlinx.coroutines.flow.toList
7-
import kotlinx.coroutines.launch
85
import org.junit.Before
96
import org.mockito.Mock
107
import org.mockito.kotlin.verifyNoInteractions
@@ -37,22 +34,22 @@ class VoiceToContentViewModelTest : BaseUnitTest() {
3734

3835
private lateinit var viewModel: VoiceToContentViewModel
3936

40-
private var uiStateChanges = mutableListOf<VoiceToContentUiState>()
41-
private val uiState
42-
get() = viewModel.state.value
43-
44-
private fun <T> testUiStateChanges(
45-
block: suspend CoroutineScope.() -> T
46-
) {
47-
test {
48-
uiStateChanges.clear()
49-
val job = launch(testDispatcher()) {
50-
viewModel.state.toList(uiStateChanges)
51-
}
52-
this.block()
53-
job.cancel()
54-
}
55-
}
37+
// private var uiStateChanges = mutableListOf<VoiceToContentUiState>()
38+
// private val uiState
39+
// get() = viewModel.state.value
40+
41+
// private fun <T> testUiStateChanges(
42+
// block: suspend CoroutineScope.() -> T
43+
// ) {
44+
// test {
45+
// uiStateChanges.clear()
46+
// val job = launch(testDispatcher()) {
47+
// viewModel.state.toList(uiStateChanges)
48+
// }
49+
// this.block()
50+
// job.cancel()
51+
// }
52+
// }
5653
/* private val jetpackAIAssistantFeature = JetpackAIAssistantFeature(
5754
hasFeature = true,
5855
isOverLimit = false,

0 commit comments

Comments
 (0)