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 332f05f commit 98b2183
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ class ResultScreenTest {
var title: String? = null
setContent {
ResultScreen(
state = ResultViewModel.State(item),
state = ResultViewModel.State(
result = item,
groupedMeasurements = emptyList(),
),
onEvent = {},
)

Expand Down Expand Up @@ -58,7 +61,11 @@ class ResultScreenTest {
)
setContent {
ResultScreen(
state = ResultViewModel.State(item, rerunEnabled = true),
state = ResultViewModel.State(
result = item,
groupedMeasurements = emptyList(),
rerunEnabled = true,
),
onEvent = events::add,
)
}
Expand All @@ -83,7 +90,10 @@ class ResultScreenTest {
)
setContent {
ResultScreen(
state = ResultViewModel.State(item),
state = ResultViewModel.State(
result = item,
groupedMeasurements = emptyList(),
),
onEvent = events::add,
)
}
Expand Down

0 comments on commit 98b2183

Please sign in to comment.