fix(#79): centralize retrofit error handling with NetworkResult

This commit is contained in:
Hy4ri
2026-06-19 22:58:33 +03:00
parent 43df3c6e73
commit 508aea8bfa
22 changed files with 743 additions and 738 deletions
@@ -143,6 +143,14 @@ class ConnectViewModelTest {
val mockResponse = mockk<Response<StatusResponse>>()
every { mockResponse.isSuccessful } returns true
every { mockResponse.body() } returns
StatusResponse(
version = "1.0",
gateway_running = true,
active_sessions = 1,
auth_required = false,
gateway_platforms = emptyMap(),
)
coEvery { mockApiService.getStatus() } returns mockResponse
viewModel.connect()