From 579dbb5f0cf081b08c6b8ffe19e6e9bcb19f638d Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Wed, 2 Feb 2022 18:00:47 -0800 Subject: [PATCH] skip test if missing lubridate --- tests/testthat/test-format_lubridate.R | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testthat/test-format_lubridate.R b/tests/testthat/test-format_lubridate.R index 3967d7912..af5866366 100644 --- a/tests/testthat/test-format_lubridate.R +++ b/tests/testthat/test-format_lubridate.R @@ -1,4 +1,5 @@ test_that("can output durations", { + skip_if_not_installed("lubridate") expect_snapshot({ pillar(lubridate::as.duration(1:3)) })