diff --git a/tests/testthat/test-build-home-index.R b/tests/testthat/test-build-home-index.R index d452b215f..d9c0a2236 100644 --- a/tests/testthat/test-build-home-index.R +++ b/tests/testthat/test-build-home-index.R @@ -156,7 +156,10 @@ 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")) + expect_warning( + pkg <- local_pkgdown_site(desc = list(BugReports = "me@tidyverse.com")), + "must be a http" + ) html <- xml2::read_html(data_home_sidebar(pkg)) expect_snapshot(xpath_xml(html, ".//li/a")) })