From 8d9cba19fe597bba170f8d4c99f351491ab4f4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Fri, 18 Oct 2024 03:11:10 +0200 Subject: [PATCH] Suppress warning from {desc} in test --- tests/testthat/test-build-home-index.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-build-home-index.R b/tests/testthat/test-build-home-index.R index d452b215f..7123f2baf 100644 --- a/tests/testthat/test-build-home-index.R +++ b/tests/testthat/test-build-home-index.R @@ -156,7 +156,7 @@ test_that("cran_unquote works", { test_that("allow email in BugReports", { # currently desc throws a warning if BugReports is an email - pkg <- local_pkgdown_site(desc = list(BugReports = "me@tidyverse.com")) + pkg <- suppressWarnings(local_pkgdown_site(desc = list(BugReports = "me@tidyverse.com"))) html <- xml2::read_html(data_home_sidebar(pkg)) expect_snapshot(xpath_xml(html, ".//li/a")) })