tests/testthat/test-theme_arc.R

context("visual unit test of theme_arc()")

base_scatterplot <- ggplot(mtcars, aes(x = wt, y = mpg)) +
  geom_point() # +
  # theme_arc() # +
  # labs(title = "Title",
  #      subtitle = "Subtitle",
  #      caption = "Caption")


test_that("scatterplots without colour look correct", {
    vdiffr::expect_doppelganger("plain scatterplot with no colour",
                                base_scatterplot)
})


# test_that("simple plot with footer looks correct", {
#     vdiffr::expect_doppelganger("scatterplot with footer",
#                                 add_arc_footer(base_scatterplot))
#
# })
MattCowgill/thearcfooty documentation built on Jan. 19, 2020, 1:57 p.m.