tests/testthat/test-theme.R

test_that("theme functions return expected prefixes", {
  expect_equal(theme_primary(), "primary")
  expect_equal(theme_secondary(), "secondary")
  expect_equal(theme_success(), "success")
  expect_equal(theme_info(), "info")
  expect_equal(theme_danger(), "danger")
  expect_equal(theme_warning(), "warning")
  expect_equal(theme_light(), "light")
  expect_equal(theme_dark(), "dark")
})

Try the cascadess package in your browser

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

cascadess documentation built on Oct. 30, 2024, 9:29 a.m.