Skip to content

Commit

Permalink
chore: correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Dec 13, 2024
1 parent cd8e33a commit 0cb840b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ooniprobe.composeapp.generated.resources.Modal_ReRun_Websites_Run
import ooniprobe.composeapp.generated.resources.Res
import org.jetbrains.compose.resources.getString
import org.ooni.probe.data.models.MeasurementModel
import org.ooni.probe.data.models.ResultCount
import org.ooni.probe.data.models.ResultItem
import org.ooni.testing.factories.DescriptorFactory
import org.ooni.testing.factories.MeasurementModelFactory
Expand All @@ -26,6 +27,7 @@ class ResultScreenTest {
network = null,
descriptor = DescriptorFactory.buildDescriptorWithInstalled(),
measurements = emptyList(),
measurementCounts = ResultCount(0, 0, 0),
)
var title: String? = null
setContent {
Expand Down Expand Up @@ -55,6 +57,7 @@ class ResultScreenTest {
),
),
),
measurementCounts = ResultCount(0, 0, 0),
)
setContent {
ResultScreen(
Expand All @@ -80,6 +83,7 @@ class ResultScreenTest {
network = null,
descriptor = DescriptorFactory.buildDescriptorWithInstalled(),
measurements = emptyList(),
measurementCounts = ResultCount(0, 0, 0),
)
setContent {
ResultScreen(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.test.runTest
import org.ooni.probe.data.models.MeasurementModel
import org.ooni.probe.data.models.ResultCount
import org.ooni.probe.data.models.ResultItem
import org.ooni.probe.data.models.ResultModel
import org.ooni.testing.factories.DescriptorFactory
Expand All @@ -32,6 +33,7 @@ class ResultViewModelTest {
network = null,
descriptor = DescriptorFactory.buildDescriptorWithInstalled(),
measurements = emptyList(),
measurementCounts = ResultCount(0, 0, 0),
)
val viewModel = buildViewModel(getResult = { flowOf(item) })

Expand Down

0 comments on commit 0cb840b

Please sign in to comment.