release v2026.05.13.3: full-player seed + MediaSession expansion (Wear) #46
+3
-2
@@ -16,7 +16,6 @@ import kotlinx.coroutines.test.runTest
|
|||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import org.junit.jupiter.api.extension.ExtendWith
|
import org.junit.jupiter.api.extension.ExtendWith
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
import kotlin.test.assertTrue
|
|
||||||
|
|
||||||
@ExtendWith(MainDispatcherExtension::class)
|
@ExtendWith(MainDispatcherExtension::class)
|
||||||
class LibraryViewModelTest {
|
class LibraryViewModelTest {
|
||||||
@@ -100,7 +99,9 @@ class LibraryViewModelTest {
|
|||||||
|
|
||||||
vm.uiState.test {
|
vm.uiState.test {
|
||||||
val error = awaitItem() as LibraryUiState.Error
|
val error = awaitItem() as LibraryUiState.Error
|
||||||
assertTrue(error.message.contains("DAO blew up"))
|
// ErrorCopy maps a non-HTTP/non-IO throwable to the generic
|
||||||
|
// fallback rather than leaking the raw exception text.
|
||||||
|
assertEquals("Something went wrong.", error.message)
|
||||||
cancelAndConsumeRemainingEvents()
|
cancelAndConsumeRemainingEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user