tests/testthat/test-build.R

test_that("both versions of build_site have same arguments", {
  expect_equal(formals(build_site_local), formals(build_site_external))
})

test_that("can build package without any index/readme", {
  pkg <- local_pkgdown_site(test_path("assets/site-empty"))
  expect_output(build_site(pkg))
})
r-lib/pkgdown documentation built on May 1, 2024, 9:15 a.m.