Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Nov 26, 2024
1 parent 484e055 commit 6bc7cd9
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,19 @@ class VisualNavigationViewConfigTest {

@Test
fun testUseMuteButton() {
val config = VisualNavigationViewConfig().useMuteButton(onMute = {})
val config = VisualNavigationViewConfig().useMuteButton()
assert(config.showMute)
}

@Test
fun testUseZoomButton() {
val config = VisualNavigationViewConfig().useZoomButton(onZoomIn = {}, onZoomOut = {})
val config = VisualNavigationViewConfig().useZoomButton()
assert(config.showZoom)
}

@Test
fun testUseMuteButtonAndZoomButton() {
val config =
VisualNavigationViewConfig()
.useMuteButton(onMute = {})
.useZoomButton(onZoomIn = {}, onZoomOut = {})
val config = VisualNavigationViewConfig().useMuteButton().useZoomButton()
assert(config.showMute)
assert(config.showZoom)
}
Expand Down

0 comments on commit 6bc7cd9

Please sign in to comment.