Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Jul 23, 2024
1 parent d0393ae commit 03b23fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testthat/test-layer.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ test_that("unknown aesthetics create warning", {
expect_warning(geom_point(aes(blah = "red")), "unknown aesthetics")
})

test_that("empty aesthetics create warning", {
expect_warning(
geom_point(fill = NULL, shape = character()),
"Ignoring empty aesthetics"
)
})

test_that("invalid aesthetics throws errors", {
# We want to test error and ignore the scale search message
suppressMessages({
Expand Down

0 comments on commit 03b23fc

Please sign in to comment.