Skip to content

Commit

Permalink
Drop deprecation check in graphics tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Aug 3, 2020
1 parent 318057a commit 4f7030a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-graphics.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist <- c(dist_normal(0, 1), dist_beta(5, 1))

test_that("autoplot.distribution pdf", {
p <- expect_warning(autoplot(dist, type = "pdf"), "deprecated")
p <- rlang::with_options(lifecycle_verbosity = "quiet", autoplot(dist, type = "pdf"))
expect_silent(print(p))
expect_length(
ggplot2::layer_data(p)$y,
Expand All @@ -25,7 +25,7 @@ test_that("autoplot.distribution pdf", {
})

test_that("autoplot.distribution cdf", {
p <- expect_warning(autoplot(dist, type = "cdf"), "deprecated")
p <- rlang::with_options(lifecycle_verbosity = "quiet", autoplot(dist, type = "cdf"))
expect_silent(print(p))
expect_length(
ggplot2::layer_data(p)$y,
Expand Down

0 comments on commit 4f7030a

Please sign in to comment.