Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Mar 17, 2024
1 parent 5726092 commit d518429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-build.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ test_that("warnings can be turned into errors", {
})

test_that("Config/build/clean-inst-doc FALSE", {
if (Sys.which("pandoc")) skip("No pandoc")
if (Sys.which("pandoc") == "") skip("No pandoc")
dest <- withr::local_tempdir()
expect_silent(
build(
Expand All @@ -232,7 +232,7 @@ test_that("Config/build/clean-inst-doc FALSE", {
})

test_that("Config/build/clean-inst-doc TRUE", {
if (Sys.which("pandoc")) skip("No pandoc")
if (Sys.which("pandoc") == "") skip("No pandoc")
src <- withr::local_tempdir()
dest <- withr::local_tempdir()
file.copy(test_path("testInstDoc"), src, recursive = TRUE)
Expand Down

0 comments on commit d518429

Please # to comment.