apexcharter/tests/testthat/test-tooltip.R

13 lines
282 B
R
Raw Normal View History

2021-01-08 15:02:44 +01:00
test_that("set_tooltip_fixed works", {
ax <- apex(
data = mtcars,
mapping = aes(x = cyl),
type = "column"
) %>%
set_tooltip_fixed()
expect_is(ax, "apex")
expect_is(ax$x$ax_opts$tooltip$fixed, "list")
expect_true(ax$x$ax_opts$tooltip$fixed$enabled)
})