Skip to content

Commit

Permalink
standardize file names
Browse files Browse the repository at this point in the history
  • Loading branch information
yjunechoe committed Sep 12, 2024
1 parent 5689761 commit ca668cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/manual_tests/test-quarto-render.R

This file was deleted.

16 changes: 16 additions & 0 deletions tests/manual_tests/test_quarto_render.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Ensure that rendering reports in Quarto do not produce `data-qmd` attributes
# since the reports are not *data* tables

quarto::quarto_render("tests/manual_tests/test_quarto_render.qmd")
stopifnot(file.exists("tests/manual_tests/test_quarto_render.html"))
utils::browseURL("tests/manual_tests/test_quarto_render.html")

test_qmd <- xml2::read_html("tests/manual_tests/test_quarto_render.html")

data_qmd_divs <- xml2::xml_find_all(test_qmd, "//div[@data-qmd]")
data_qmd_divs

stopifnot(length(data_qmd_divs) == 0)

unlink("tests/manual_tests/test_quarto_render.html")
unlink("tests/manual_tests/test_quarto_render_files/*", recursive = TRUE)
File renamed without changes.

0 comments on commit ca668cd

Please sign in to comment.