Skip to content

Commit 04df4b1

Browse files
committed
feat(mobile-app): Updated unit test for settings viewmodel
1 parent 0a1daca commit 04df4b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/mobile-app/src/test/kotlin/dev/marlonlom/apps/cappajv/features/settings/SettingsViewModelTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import androidx.datastore.preferences.core.emptyPreferences
1212
import androidx.datastore.preferences.core.mutablePreferencesOf
1313
import dev.marlonlom.apps.cappajv.core.preferences.UserPreferencesRepository
1414
import dev.marlonlom.apps.cappajv.util.MainDispatcherRule
15+
import dev.marlonlom.apps.cappajv.util.RethrowingExceptionHandler
1516
import kotlinx.coroutines.ExperimentalCoroutinesApi
1617
import kotlinx.coroutines.flow.first
1718
import kotlinx.coroutines.flow.flowOf
@@ -30,6 +31,9 @@ internal class SettingsViewModelTest {
3031
@get:Rule
3132
val mainDispatcherRule = MainDispatcherRule()
3233

34+
@get:Rule
35+
val throwRule = RethrowingExceptionHandler()
36+
3337
private lateinit var viewModel: SettingsViewModel
3438

3539
@Test

0 commit comments

Comments
 (0)