Use testthat 3
diff --git a/DESCRIPTION b/DESCRIPTION
index 0cd39b7..967e4eb 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
Type: Package
Package: revealjs
Title: R Markdown Format for 'reveal.js' Presentations
-Version: 0.9.1.9000
+Version: 0.9.1.9001
Date: 2017-03-13
Authors@R:
c(person(given = "Hakim",
@@ -34,7 +34,8 @@
rmarkdown (>= 1.0)
Suggests:
bslib,
- testthat
+ testthat (>= 3.0.0)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.2
+Config/testthat/edition: 3
diff --git a/tests/testthat/test_themes.R b/tests/testthat/test_themes.R
index 63a3f2e..d217d06 100644
--- a/tests/testthat/test_themes.R
+++ b/tests/testthat/test_themes.R
@@ -1,10 +1,5 @@
-
-context("Themes")
-
test_theme <- function(theme) {
-
test_that(paste(theme, "theme"), {
-
# don't run on cran because pandoc is required
skip_on_cran()
@@ -28,7 +23,8 @@
output_format <- revealjs_presentation(theme = theme)
rmarkdown::render(testdoc,
output_format = output_format,
- output_file = output_file)
+ output_file = output_file,
+ quiet = TRUE)
expect_true(file.exists(output_file))
})
})