diff --git a/tests/testthat/test-plot.R b/tests/testthat/test-plot.R index 45a3e1cede..8f6a94f56b 100644 --- a/tests/testthat/test-plot.R +++ b/tests/testthat/test-plot.R @@ -1,7 +1,7 @@ test_that("ggplot() throws informative errors", { expect_snapshot_error(ggplot(mapping = letters)) expect_snapshot_error(ggplot(data)) - expect_snapshot_warning(ggplot(foobar = "nonsense")) + expect_snapshot_warning(ggplot(NULL, foobar = "nonsense")) }) test_that("construction have user friendly errors", {