tests/testthat/test-affix.R

context("align()")

test_that("added classes", {
  div(.style %>% align("bottom")) %>%
    expect_s3_class("shiny.tag") %>%
    expect_html_class("cas-align-bottom")
})

test_that("valid values", {
  expect_error(
    .style %>% align("wrong"),
    "^invalid value [^ ]*wrong[^ ]*$"
  )
})

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.