tests/testthat/test-theme.R

test_that("create_theme works", {
  withr::with_tempdir({
    expect_snapshot_output(create_theme("my-style"))
    expect_true(file.exists("my-style.css"))
  })
})

Try the distill package in your browser

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

distill documentation built on Oct. 6, 2023, 5:06 p.m.