Skip to content

Commit 5d55ae8

Browse files
committed
adjust tests
1 parent 3fcfbe3 commit 5d55ae8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testthat/test-facet-strips.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ test_that("strips can be removed", {
132132
theme(strip.background = element_blank(), strip.text = element_blank())
133133
g_grobs <- ggplotGrob(g)
134134
strip_grobs <- g_grobs$grobs[grepl('strip-', g_grobs$layout$name)]
135-
expect_true(all(sapply(strip_grobs, inherits, 'zeroGrob')))
135+
expect_true(all(sapply(strip_grobs, inherits, 'null')))
136136
})
137137

138138
test_that("padding is only added if axis is present", {

tests/testthat/test-stat-density2d.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ test_that("stat_density_2d handles faulty bandwidth", {
100100
p <- ggplot(faithful, aes(eruptions, waiting)) +
101101
stat_density_2d(h = c(0, NA))
102102
expect_snapshot_warning(b <- ggplot_build(p))
103-
expect_s3_class(layer_grob(b)[[1]], "zeroGrob")
103+
expect_s3_class(layer_grob(b)[[1]], "null")
104104
})

0 commit comments

Comments
 (0)