tests/testthat/helper-css.R

# expect should be a css string with no spaces or linebreaks
# actual should be the output of sass compilation
expect_css <- function(expect, actual) {
  expect_identical(
    gsub("\\s+|\\n", "", as.character(expect)),
    gsub("\\s+|\\n", "", as.character(actual))
  )
}

Try the bslib package in your browser

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

bslib documentation built on May 29, 2024, 6:31 a.m.