diff --git a/core/src/test/kotlin/org/jetbrains/jewel/BasicJewelUiTest.kt b/core/src/test/kotlin/org/jetbrains/jewel/BasicJewelUiTest.kt index 64c23eb40..e8bde5213 100644 --- a/core/src/test/kotlin/org/jetbrains/jewel/BasicJewelUiTest.kt +++ b/core/src/test/kotlin/org/jetbrains/jewel/BasicJewelUiTest.kt @@ -7,16 +7,19 @@ import kotlinx.coroutines.runBlocking import org.junit.Before import org.junit.Rule -abstract class BasicJewelUiTest { +open class BasicJewelUiTest { @get:Rule val composeRule = createComposeRule() - protected fun runComposeTest(composable: @Composable () -> Unit, block: suspend ComposeContentTestRule.() -> Unit) = - runBlocking { - composeRule.setContent(composable) - composeRule.block() - } + @Suppress("ImplicitUnitReturnType") + protected fun runComposeTest( + composable: @Composable () -> Unit, + block: suspend ComposeContentTestRule.() -> Unit, + ) = runBlocking { + composeRule.setContent(composable) + composeRule.block() + } @Before fun setUpProperties() { diff --git a/core/src/test/kotlin/org/jetbrains/jewel/PainterHintTest.kt b/core/src/test/kotlin/org/jetbrains/jewel/PainterHintTest.kt index 10045234f..ec4ab43ca 100644 --- a/core/src/test/kotlin/org/jetbrains/jewel/PainterHintTest.kt +++ b/core/src/test/kotlin/org/jetbrains/jewel/PainterHintTest.kt @@ -9,6 +9,7 @@ import org.jetbrains.jewel.painter.rememberResourcePainterProvider import org.junit.Assert import org.junit.Test +@Suppress("ImplicitUnitReturnType") class PainterHintTest : BasicJewelUiTest() { @Test