From 1746f6a67e9117da7109a96d3060045cf0b3d6cb Mon Sep 17 00:00:00 2001 From: Lionel Henry Date: Wed, 1 Apr 2026 13:30:11 +0200 Subject: [PATCH] Fix snapshot test for `warn_dots_used()` --- tests/testthat/test-plot.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", {