tests/testthat/test-item-align.R

test_that("adds classes", {
  x <- div(.style %>% item_align("end"))

  expect_s3_class(x, "shiny.tag")
  expect_html_class(x, "align-self-end")
})

test_that("adds responsive classes", {
  x <- div(.style %>% item_align(lg = "end"))

  expect_s3_class(x, "shiny.tag")
  expect_html_class(x, "align-self-lg-end")
})

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.