There was an error while loading. Please reload this page.
1 parent 60fe5b3 commit c8cf34eCopy full SHA for c8cf34e
1 file changed
viewmodel/src/test/java/com/cairosquad/viewmodel/details/series/SeriesDetailsViewModelTest.kt
@@ -69,6 +69,7 @@ class SeriesDetailsViewModelTest {
69
}
70
71
72
+
73
@Test
74
fun `should convert to error state when get series by id fails`() = runTest {
75
coEvery { manageSeriesUseCase.getSeriesById(seriesId) } throws RuntimeException()
@@ -463,6 +464,7 @@ class SeriesDetailsViewModelTest {
463
464
val status = viewModel.handleDetailsException(exception)
465
assertThat(status).isEqualTo(ErrorStatus.NO_INTERNET)
466
467
468
companion object {
469
private const val seriesId = 123L
470
private val mockSeries = Series(
0 commit comments