Skip to content

Commit

Permalink
test: use index.md not README.md in test @krlmlr
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored and krlmlr committed Oct 29, 2024
1 parent 7605ed9 commit 5d6d62e
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 @@ -165,7 +165,7 @@ test_that("ANSI are handled", {
withr::local_options(cli.num_colors = 256)
pkg <- local_pkgdown_site()

pkg <- pkg_add_file(pkg, "README.md", sprintf("prefer %s", cli::col_blue("a")))
pkg <- pkg_add_file(pkg, "index.md", sprintf("prefer %s", cli::col_blue("a")))
suppressMessages(build_home_index(pkg))

html <- xml2::read_html(path(pkg$dst_path, "index.html"))
Expand Down

0 comments on commit 5d6d62e

Please sign in to comment.