tests/testthat/test-theme_gov_simple.R

context('theme_gov() works with simple examples')

test_that(
  'theme_gov can replicate a simple rug and point plot',
  {
    p <- ggplot2::ggplot(
      data = mtcars,
      aes(
        x = mpg,
        y = wt
      )
    ) +
      geom_point() +
      theme_gov()

    vdiffr::expect_doppelganger("simple rug and point plot", p)
  }
)
ukgovdatascience/govstyle documentation built on Oct. 8, 2019, 7:39 p.m.