From c7fb7456635d3d0f3b74997230f597191ede1d4a Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Wed, 11 May 2022 16:43:36 +0200 Subject: [PATCH 1/3] ", "", + "", "" + )) + html <- local_render(rmd, output_format = 'distill::distill_article') + expect_identical(str_trim(article_contents(html)), "Some content") +}) diff --git a/tests/testthat/test-create.R b/tests/testthat/test-create.R index 9291fb32..a1013795 100644 --- a/tests/testthat/test-create.R +++ b/tests/testthat/test-create.R @@ -1,6 +1,6 @@ test_that("blogs can be created", { - skip_if_pandoc_not_installed() + skip_if_not_pandoc() tmpdir <- withr::local_tempdir() @@ -18,7 +18,7 @@ test_that("blogs can be created", { }) test_that("websites can be created", { - skip_if_pandoc_not_installed() + skip_if_not_pandoc() expect_error({ on.exit(unlink("testsite", recursive = TRUE), add = TRUE) create_website("testsite", "Test Site", edit = FALSE) diff --git a/tests/testthat/test-distill_article.R b/tests/testthat/test-distill_article.R index 5688597a..388cf9e2 100644 --- a/tests/testthat/test-distill_article.R +++ b/tests/testthat/test-distill_article.R @@ -1,5 +1,5 @@ test_that("distill articles can be created", { - skip_if_pandoc_not_installed() + skip_if_not_pandoc() expect_s3_class(distill_article(), "rmarkdown_output_format") })