We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67d6fda commit dcac34bCopy full SHA for dcac34b
tests/testthat/test-labels.R
@@ -110,7 +110,13 @@ test_that("get_alt_text checks dots", {
110
})
111
112
test_that("warnings are thrown for unknown labels", {
113
- p <- ggplot(mtcars, aes(mpg, disp)) + geom_point() + labs(foo = 'bar')
+ 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
+ )
120
expect_snapshot_warning(ggplot_build(p))
121
122
0 commit comments