Skip to content

Commit

Permalink
Try more realistic file name
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed May 24, 2024
1 parent fae58b7 commit 8dcd8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-build-search-docs.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ test_that("build_search() builds the expected search.json with no URL", {

test_that("build_sitemap() handles special xml characters", {
pkg <- local_pkgdown_site()
file_create(path(pkg$dst_path, "<.html"))
file_create(path(pkg$dst_path, "[<-.foo.html"))

suppressMessages(build_sitemap(pkg))
expect_no_error(xml2::read_xml(path(pkg$dst_path, "sitemap.xml")))
Expand Down

0 comments on commit 8dcd8ba

Please sign in to comment.