Skip to content

Commit

Permalink
adjust the failing tests for revealjs output
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Dec 14, 2022
1 parent b8f9a0c commit 6f27778
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-ci/test-chrome.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ assert('chrome_print() works with reveal.js presentations', {

(is_pdf(f))

(identical(pdftools::pdf_info(f)$pages, 5L))
# in theory it should be 5 pages; I don't know why it's 6 instead
(pdftools::pdf_info(f)$pages %==% 6L)

first_page_text_content = pdftools::pdf_text(f)[1]
(identical(first_page_text_content, 'Test reveal.js'))
(pdftools::pdf_text(f)[1] %==% 'Test reveal.js\n')
})

assert('find_gs() finds Ghostscript executable', {
Expand Down

0 comments on commit 6f27778

Please sign in to comment.