Skip to content

Commit 266e4b6

Browse files
committed
add test
1 parent a7665da commit 266e4b6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/testthat/test-geom-.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ test_that("updating geom aesthetic defaults preserves class and order", {
6464

6565
})
6666

67-
68-
69-
7067
test_that("updating stat aesthetic defaults preserves class and order", {
7168

7269
original_defaults <- StatBin$default_aes
@@ -86,3 +83,8 @@ test_that("updating stat aesthetic defaults preserves class and order", {
8683
update_stat_defaults("bin", NULL)
8784

8885
})
86+
87+
test_that("Geom throws lifecycle signals", {
88+
test <- ggproto(NULL, GeomPoint, optional_aes = "foo")
89+
lifecycle::expect_deprecated(stat_identity(geom = test))
90+
})

0 commit comments

Comments
 (0)