From 4f7030a546609eed7f1abb1557b58a0a44e9e67c Mon Sep 17 00:00:00 2001 From: Mitch Date: Mon, 3 Aug 2020 17:03:29 +1000 Subject: [PATCH] Drop deprecation check in graphics tests --- tests/testthat/test-graphics.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-graphics.R b/tests/testthat/test-graphics.R index 6ff56dc8..d6084a89 100644 --- a/tests/testthat/test-graphics.R +++ b/tests/testthat/test-graphics.R @@ -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, @@ -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,