tests/testthat/test-text-color.R

test_that("adds html class", {
  div() %>%
    text_color("primary") %>%
    expect_shiny_tag() %>%
    expect_html_class("text-primary")

  div(
    .style %>%
      text_color("primary")
  ) %>%
    expect_s3_class("shiny.tag") %>%
    expect_html_class("text-primary")
})

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.