From 8ef06bf945f826dd2f29f03f5b66e99700342e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Mon, 23 Dec 2024 11:00:49 +0100 Subject: [PATCH] Fix test --- .../compose/screen/ChangelogScreenTest.kt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ChangelogScreenTest.kt b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ChangelogScreenTest.kt index 4494dadeb983..968f16eb2916 100644 --- a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ChangelogScreenTest.kt +++ b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ChangelogScreenTest.kt @@ -24,8 +24,18 @@ class ChangelogScreenTest { MockKAnnotations.init(this) } - private fun ComposeContext.initScreen(state: ChangelogUiState, onBackClick: () -> Unit = {}) { - setContentWithTheme { ChangelogScreen(state = state, onBackClick = onBackClick) } + private fun ComposeContext.initScreen( + state: ChangelogUiState, + onSeeFullChangelog: () -> Unit = {}, + onBackClick: () -> Unit = {}, + ) { + setContentWithTheme { + ChangelogScreen( + state = state, + onSeeFullChangelog = onSeeFullChangelog, + onBackClick = onBackClick, + ) + } } @Test