tests/testthat/test-text-decoration.R

test_that("adds classes", {
  x <- div(.style %>% text_decoration("underline"))
  y <- div(.style %>% text_decoration("strike"))
  z <- div(.style %>% text_decoration("none"))

  expect_s3_class(x, "shiny.tag")
  expect_html_class(x, "text-underline")
  expect_html_class(y, "text-line-through")
  expect_html_class(z, "text-none")
})

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.