tests/testthat/test-overflow.R

test_that("adds html class", {
  x <- div(.style %>% overflow_all("auto"))

  expect_s3_class(x, "shiny.tag")
  expect_html_class(x, "overflow-auto")

  y <- div(.style %>% overflow_horizontal("hidden"))

  expect_s3_class(y, "shiny.tag")
  expect_html_class(y, "overflow-x-hidden")

  z <- div() %>% overflow_vertical(TRUE)

  expect_s3_class(z, "shiny.tag")
  expect_html_class(z, "overflow-y-scroll")
})

Try the cascadess package in your browser

Any scripts or data that you put into this service are public.

cascadess documentation built on Oct. 30, 2024, 9:29 a.m.