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))
  )
}
rstudio/bootstraplib documentation built on June 17, 2024, 9:42 a.m.