File tree Expand file tree Collapse file tree
WordPress/src/test/java/org/wordpress/android/ui/voicetocontent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org.wordpress.android.ui.voicetocontent
22
3- import kotlinx.coroutines.CoroutineScope
43import kotlinx.coroutines.ExperimentalCoroutinesApi
54import kotlinx.coroutines.flow.flow
6- import kotlinx.coroutines.flow.toList
7- import kotlinx.coroutines.launch
85import org.junit.Before
96import org.mockito.Mock
107import 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,
You can’t perform that action at this time.
0 commit comments