tests/testthat/test-text-height.R

test_that("adds classes", {
  x <- div() %>% text_height("large")
  y <- div() %>% text_height("sm")

  expect_s3_class(x, "shiny.tag")
  expect_html_class(x, "lh-lg")

  expect_s3_class(y, "shiny.tag")
  expect_html_class(y, "lh-sm")
})

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.