context("test-plot-mpg")
test_that("plot_mpg() works", {
vdiffr::expect_doppelganger(
"plot_mpg(), defaults",
plot_mpg()
)
vdiffr::expect_doppelganger(
"plot_mpg(), with NULL colour and facet",
plot_mpg(colour_var = NULL, facet_var = NULL)
)
vdiffr::expect_doppelganger(
"plot_mpg(), with colour var",
plot_mpg(colour_var = "class")
)
vdiffr::expect_doppelganger(
"plot_mpg(), with facet var",
plot_mpg(facet_var = "class")
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.