tests/testthat/test_theme_eq.R

context('theme_eq')

test_that('theme_eq adds some of the expected theme element', {

  p <- ggplot2::qplot(1:4, 1:4)
  p <- p + theme_eq()

  expect_equal(p$theme$legend.position, 'bottom')
  expect_equal(p$theme$axis.line.x, element_line())

})
JazminCevallos/Package-Evaluation documentation built on May 27, 2019, 12:16 p.m.