Skip to content

Commit

Permalink
tests: fix test by setting quarto.version as numeric_version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgohel committed Apr 13, 2024
1 parent 7ac8b14 commit 8e21aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test_that("fonts are defined in latex", {
knitr::opts_knit$set("rmarkdown.pandoc.args" = NULL)

# quarto
knitr::opts_knit$set("quarto.version" = numeric_version(1))
knitr::opts_knit$set("quarto.version" = numeric_version("1.0"))
latex_str <- flextable:::gen_raw_latex(ft, quarto = TRUE)
expect_match(latex_str, regexp = "Liberation Sans", fixed = TRUE)
})

0 comments on commit 8e21aaa

Please sign in to comment.