Skip to content

Commit dcac34b

Browse files
committed
include in test
1 parent 67d6fda commit dcac34b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/testthat/test-labels.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,13 @@ test_that("get_alt_text checks dots", {
110110
})
111111

112112
test_that("warnings are thrown for unknown labels", {
113-
p <- ggplot(mtcars, aes(mpg, disp)) + geom_point() + labs(foo = 'bar')
113+
p <- ggplot(mtcars, aes(mpg, disp)) +
114+
geom_point() +
115+
labs(
116+
foo = "i don't exist",
117+
bar = function(x) "i don't exist either",
118+
qux = expression(me * neither)
119+
)
114120
expect_snapshot_warning(ggplot_build(p))
115121
})
116122

0 commit comments

Comments
 (0)