Skip to content

Commit

Permalink
use result of assertThat
Browse files Browse the repository at this point in the history
  • Loading branch information
saied89 committed Jul 7, 2022
1 parent 47e2bdb commit 5207f97
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 5207f97

Please sign in to comment.