tests/testthat/test-item.R

test_that("adds html class", {
  tag <- div() %>%
    item_order(2)

  expect_shiny_tag(tag)
  expect_html_class(tag, "order-2")
})

test_that("adds responsive html class", {
  tag <- div() %>%
    item_order(md = 2)

  expect_html_class(tag, "order-md-2")
})

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.