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")) })