From 91a010397cc7ce41e0789ed52a3e3ba87f8e4da7 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Wed, 11 May 2022 17:32:06 +0200 Subject: [PATCH] ", "", + "", "" + )) + 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") })