Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun authored and albin-mullvad committed Nov 27, 2023
1 parent 993c14d commit 022952d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import net.mullvad.mullvadvpn.ui.serviceconnection.ServiceConnectionManager
import net.mullvad.mullvadvpn.ui.serviceconnection.ServiceConnectionState
import net.mullvad.mullvadvpn.ui.serviceconnection.authTokenCache
import net.mullvad.mullvadvpn.ui.serviceconnection.connectionProxy
import net.mullvad.mullvadvpn.usecase.PaymentUseCase
import net.mullvad.mullvadvpn.usecase.RelayListUseCase
import net.mullvad.mullvadvpn.util.appVersionCallbackFlow
import net.mullvad.talpid.tunnel.ErrorState
Expand Down Expand Up @@ -89,6 +90,9 @@ class ConnectViewModelTest {
// Relay list use case
private val mockRelayListUseCase: RelayListUseCase = mockk()

// Payment use case
private val mockPaymentUseCase: PaymentUseCase = mockk(relaxed = true)

// Captures
private val locationSlot = slot<((GeoIpLocation?) -> Unit)>()

Expand Down Expand Up @@ -139,7 +143,8 @@ class ConnectViewModelTest {
deviceRepository = mockDeviceRepository,
inAppNotificationController = mockInAppNotificationController,
relayListUseCase = mockRelayListUseCase,
newDeviceNotificationUseCase = mockk()
newDeviceNotificationUseCase = mockk(),
paymentUseCase = mockPaymentUseCase
)
}

Expand Down

0 comments on commit 022952d

Please sign in to comment.