tests/testthat/test-item.R

context("item()")

test_that("adds class", {
  div() %>%
    item(order = 2) %>%
    expect_s3_class("shiny.tag") %>%
    expect_html_class("cas-item-order-2")
})

test_that("`fill` argument", {
  expect_error(item(div(), fill = FALSE))
  expect_error(item(div(), fill = 1))
})

Try the cascadess package in your browser

Any scripts or data that you put into this service are public.

cascadess documentation built on Jan. 13, 2021, 5:10 p.m.