Skip to content

Commit

Permalink
Update test-build-home-index.R
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored Oct 17, 2024
1 parent 569fba1 commit e940f07
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/testthat/test-build-home-index.R
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]")),
"must be a http"
)
pkg <- suppressWarnings(local_pkgdown_site(desc = list(BugReports = "[email protected]")))
html <- xml2::read_html(data_home_sidebar(pkg))
expect_snapshot(xpath_xml(html, ".//li/a"))
})

0 comments on commit e940f07

Please sign in to comment.