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))
})

Try the pkgdown package in your browser

Any scripts or data that you put into this service are public.

pkgdown documentation built on Dec. 28, 2022, 1:37 a.m.