Skip to content

Commit

Permalink
Merge branch 'master' into skip_login
Browse files Browse the repository at this point in the history
  • Loading branch information
arnfinn authored Jun 5, 2024
2 parents 51fd2b5 + 29ac001 commit e2e0739
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/testthat/test-renderRmd.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ test_that("Rmd source can be rendered", {
expect_true(file.exists(renderRmd(sourceFile)))
expect_true("html" %in%
class(renderRmd(sourceFile, outputType = "html_fragment")))
expect_true(file.exists(renderRmd(sourceFile,
outputType = "pdf",
logoFile = logoFile,
params = list(reglogo = "logo")
)))
if (Sys.getenv("GITHUB_ACTIONS_RUN_DB_UNIT_TESTS") != "true") {
expect_true(file.exists(renderRmd(sourceFile,
outputType = "pdf",
logoFile = logoFile,
params = list(reglogo = "logo")
)))
}
expect_error(renderRmd(sourceFile, outputType = "beamer"))
expect_error(renderRmd(sourceFile = "noneExistingFile.Rmd"))
})

0 comments on commit e2e0739

Please sign in to comment.