Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Jun 3, 2024
1 parent 0a982f2 commit 276082b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.compose.ui.test.onNodeWithText
import net.mullvad.mullvadvpn.compose.createEdgeToEdgeComposeExtension
import net.mullvad.mullvadvpn.compose.setContentWithTheme
import net.mullvad.mullvadvpn.viewmodel.DnsDialogViewState
import net.mullvad.mullvadvpn.viewmodel.ValidationError
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.RegisterExtension

Expand All @@ -20,7 +21,7 @@ class DnsDialogTest {
private val defaultState =
DnsDialogViewState(
ipAddress = "",
validationResult = DnsDialogViewState.ValidationError.Success,
validationResult = null,
isLocal = false,
isAllowLanEnabled = false,
isNewEntry = true
Expand Down Expand Up @@ -94,7 +95,7 @@ class DnsDialogTest {
testDnsDialog(
defaultState.copy(
ipAddress = invalidIpAddress,
validationResult = DnsDialogViewState.ValidationError.InvalidAddress,
validationResult = ValidationError.InvalidAddress,
)
)
}
Expand All @@ -111,7 +112,7 @@ class DnsDialogTest {
testDnsDialog(
defaultState.copy(
ipAddress = "192.168.0.1",
validationResult = DnsDialogViewState.ValidationError.DuplicateAddress,
validationResult = ValidationError.DuplicateAddress,
)
)
}
Expand Down

0 comments on commit 276082b

Please sign in to comment.