From 5207f97dbf5e4166f59d0f23f2d3507b79bf7434 Mon Sep 17 00:00:00 2001 From: saied89 Date: Thu, 7 Jul 2022 12:35:50 +0430 Subject: [PATCH] use result of assertThat --- .../accompanist/navigation.material/SheetContentHostTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/navigation-material/src/androidTest/java/com/google/accompanist/navigation.material/SheetContentHostTest.kt b/navigation-material/src/androidTest/java/com/google/accompanist/navigation.material/SheetContentHostTest.kt index 4d82f692f..436a429e9 100644 --- a/navigation-material/src/androidTest/java/com/google/accompanist/navigation.material/SheetContentHostTest.kt +++ b/navigation-material/src/androidTest/java/com/google/accompanist/navigation.material/SheetContentHostTest.kt @@ -101,7 +101,7 @@ internal class SheetContentHostTest { onSheetDismissed = { entry -> dismissedBackStackEntries.add(entry) } ) - assertThat(sheetState.currentValue == ModalBottomSheetValue.Expanded) + assertThat(sheetState.currentValue == ModalBottomSheetValue.Expanded).isTrue() composeTestRule.onNodeWithTag(bodyContentTag).performClick() composeTestRule.runOnIdle { assertWithMessage("Sheet is visible") @@ -126,7 +126,7 @@ internal class SheetContentHostTest { onSheetDismissed = { entry -> dismissedBackStackEntries.add(entry) } ) - assertThat(sheetState.currentValue == ModalBottomSheetValue.Expanded) + assertThat(sheetState.currentValue == ModalBottomSheetValue.Expanded).isTrue() composeTestRule.onNodeWithTag(bodyContentTag).performClick() composeTestRule.runOnIdle { assertWithMessage("Sheet is not visible")