From d78a1f5d5e1d12701002176174ddde373a14b979 Mon Sep 17 00:00:00 2001 From: Brandon McAnsh Date: Fri, 26 Jun 2026 16:45:21 -0400 Subject: [PATCH] fix: update AuthManagerTest to mock network observer Signed-off-by: Brandon McAnsh --- .../src/test/kotlin/com/flipcash/app/auth/AuthManagerTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/flipcash/shared/authentication/src/test/kotlin/com/flipcash/app/auth/AuthManagerTest.kt b/apps/flipcash/shared/authentication/src/test/kotlin/com/flipcash/app/auth/AuthManagerTest.kt index b5e0d7ece..ec64beec8 100644 --- a/apps/flipcash/shared/authentication/src/test/kotlin/com/flipcash/app/auth/AuthManagerTest.kt +++ b/apps/flipcash/shared/authentication/src/test/kotlin/com/flipcash/app/auth/AuthManagerTest.kt @@ -22,6 +22,7 @@ import io.mockk.every import io.mockk.mockk import io.mockk.verify import com.flipcash.libs.coroutines.TestDispatcherProvider +import com.getcode.utils.network.NetworkConnectivityListener import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.MutableStateFlow @@ -61,6 +62,8 @@ class AuthManagerTest { private val contactCoordinator: ContactCoordinator = mockk(relaxed = true) private val userManagerState = MutableStateFlow(UserManager.State()) + private val networkConnectivityListener = mockk(relaxed = true) + private lateinit var authManager: AuthManager @Before @@ -93,6 +96,7 @@ class AuthManagerTest { userFlags = userFlags, contactCoordinator = contactCoordinator, dispatchers = dispatchers, + networkObserver = networkConnectivityListener, ) }