tests/testthat/test-zzz-bs.R

test_that("Using bootswatch arg is equivalent to bs_bundle()", {
  cosmo_primary <- sass_partial("body{color:$primary;}", as_bs_theme("cosmo@4"))
  expect_css("body{color:#2780e3;}", cosmo_primary)
})
rstudio/bootstraplib documentation built on June 17, 2024, 9:42 a.m.