Skip to content

Commit

Permalink
Suppress warning from {desc} in test
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored Oct 18, 2024
1 parent 71fd32c commit 8d9cba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-build-home-index.R
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"))
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 8d9cba1

Please sign in to comment.