Skip to content

Commit

Permalink
Merge pull request #1230 from saied89/main
Browse files Browse the repository at this point in the history
[navigation material] use result of assertThat
  • Loading branch information
bentrengrove committed Jul 8, 2022
2 parents 7b62cdc + 5207f97 commit dfbbe33
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 dfbbe33

Please sign in to comment.