tests/testthat/test_fx_plot_themes.R

context("Testing ggplot2 themes")

test_that("make sure the theme is a ggplot theme", {
  expect_true("theme" %in% class(theme_kp("light")))
  expect_true("theme" %in% class(theme_kp("dark")))
  expect_error(theme_kp("banana"))
})
kputschko/kp.helpers documentation built on May 21, 2019, 10:12 a.m.