tests/testthat/test-create_theme_fun.R

# WARNING - Generated by {fusen} from /dev/flat_ggplot_theme.Rmd: do not edit by hand

test_that("create_theme_fun works", {

  data(toy_raw_file_content)

  my_theme <- toy_raw_file_content %>% 
    extract_ggplot_theme() %>% 
    create_theme_fun()
  
  expect_true(inherits(my_theme, "function"))
  
})
ThinkR-open/swatch documentation built on April 7, 2022, 6:08 p.m.