tests/testthat/test-flex-justify.R

test_that("adds classes", {
  tg <- div(.style %>% flex_justify("start"))

  expect_s3_class(tg, "shiny.tag")
  expect_html_class(tg, "justify-content-start")
})

test_that("adds responsive classes", {
  tg <- div(.style %>% flex_justify(sm = "start"))

  expect_s3_class(tg, "shiny.tag")
  expect_html_class(tg, "justify-content-sm-start")
})

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.