Skip to content

Commit

Permalink
Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Jun 25, 2024
1 parent 5143c2b commit ec4cb38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-rendering.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
test_that("Rmd Rendering", {
dir <- download_ottr_template(dir = ".", type = "rmd")

bookdown::render_book("index.Rmd", output_format = "all")
bookdown::render_book("OTTR_Template-main")
unlink(dir)
})

Expand All @@ -17,7 +17,7 @@ test_that("Quarto Rendering", {
})

test_that("Rmd Website Rendering", {
dir <- download_ottr_template(dir = ".", type = "rmd")
dir <- download_ottr_template(dir = ".", type = "rmd_website")

rmarkdown::clean_site(dir, preview = FALSE)

Expand All @@ -28,7 +28,7 @@ test_that("Rmd Website Rendering", {


test_that("Quarto Website Rendering", {
dir <- download_ottr_template(dir = ".", type = "quarto")
dir <- download_ottr_template(dir = ".", type = "quarto_website")

quarto::quarto_render(dir)

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-rmd_leanpub_prep.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

test_that("Tocless render for Rmd", {
# render_without_toc()
dir <- download_ottr_template(dir = "inst/extdata", type = "rmd")
dir <- download_ottr_template(dir = ".", type = "rmd")

# TODO: This should be functionalized and incorporated into the package
# curl -o make_screenshots.R https://raw.githubusercontent.com/jhudsl/ottr-reports/main/scripts/make_screenshots.R
Expand All @@ -16,7 +16,7 @@ test_that("Tocless render for Rmd", {

test_that("Create Leanpub IFrames for Rmd", {

dir <- download_ottr_template(dir = "inst/extdata", type = "rmd")
dir <- download_ottr_template(dir = ".", type = "rmd")

# ottrpal::bookdown_to_embed_leanpub(
# render = FALSE, \
Expand Down

0 comments on commit ec4cb38

Please sign in to comment.