From e940f0799c6fedf240717f257d51a984ebe84add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Thu, 17 Oct 2024 16:13:13 +0200 Subject: [PATCH] Update test-build-home-index.R --- tests/testthat/test-build-home-index.R | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/testthat/test-build-home-index.R b/tests/testthat/test-build-home-index.R index d9c0a2236..7123f2baf 100644 --- a/tests/testthat/test-build-home-index.R +++ b/tests/testthat/test-build-home-index.R @@ -156,10 +156,7 @@ test_that("cran_unquote works", { test_that("allow email in BugReports", { # currently desc throws a warning if BugReports is an email - expect_warning( - pkg <- local_pkgdown_site(desc = list(BugReports = "me@tidyverse.com")), - "must be a http" - ) + 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")) })