Skip to content

Commit 03b23fc

Browse files
committed
add test
1 parent d0393ae commit 03b23fc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/testthat/test-layer.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ test_that("unknown aesthetics create warning", {
2525
expect_warning(geom_point(aes(blah = "red")), "unknown aesthetics")
2626
})
2727

28+
test_that("empty aesthetics create warning", {
29+
expect_warning(
30+
geom_point(fill = NULL, shape = character()),
31+
"Ignoring empty aesthetics"
32+
)
33+
})
34+
2835
test_that("invalid aesthetics throws errors", {
2936
# We want to test error and ignore the scale search message
3037
suppressMessages({

0 commit comments

Comments
 (0)