tests/testthat/mock-pkg/tests/testthat/test-ggplot.R

test_that("ggtitle is set correctly", {
  p <- ggplot2::ggplot()
  expect_doppelganger("Some title", p)
  expect_doppelganger("Some other title", p + ggplot2::ggtitle(NULL))
})
lionel-/vdiffr documentation built on Oct. 16, 2023, 6:09 p.m.