From 98b21833b0cd3b4c9fadbfdc83ed344d0d268c06 Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Fri, 13 Dec 2024 11:59:49 +0100 Subject: [PATCH] chore: correct tests --- .../org/ooni/probe/ui/result/ResultScreenTest.kt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/composeApp/src/commonTest/kotlin/org/ooni/probe/ui/result/ResultScreenTest.kt b/composeApp/src/commonTest/kotlin/org/ooni/probe/ui/result/ResultScreenTest.kt index f82ce15c..49fc38e1 100644 --- a/composeApp/src/commonTest/kotlin/org/ooni/probe/ui/result/ResultScreenTest.kt +++ b/composeApp/src/commonTest/kotlin/org/ooni/probe/ui/result/ResultScreenTest.kt @@ -30,7 +30,10 @@ class ResultScreenTest { var title: String? = null setContent { ResultScreen( - state = ResultViewModel.State(item), + state = ResultViewModel.State( + result = item, + groupedMeasurements = emptyList(), + ), onEvent = {}, ) @@ -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, ) } @@ -83,7 +90,10 @@ class ResultScreenTest { ) setContent { ResultScreen( - state = ResultViewModel.State(item), + state = ResultViewModel.State( + result = item, + groupedMeasurements = emptyList(), + ), onEvent = events::add, ) }