tests/testthat/test-gap-all.R

test_that("adds classes", {
  x <- div() %>% gap_all(2)
  y <- div() %>% gap_all(sm = 1, lg = 4)

  expect_s3_class(x, "shiny.tag")
  expect_html_class(x, "gap-2")

  expect_s3_class(y, "shiny.tag")
  expect_html_class(y, "gap-sm-1")
  expect_html_class(y, "gap-lg-4")
})

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.