Skip to content

Commit 99a7a7e

Browse files
committed
Adapt snapshot test for width in CLI
1 parent 8e60617 commit 99a7a7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/testthat/_snaps/convert-bookdown.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,17 +486,16 @@
486486
-- File: '<test_file_basename>' --
487487
488488
-- Theorem Block Unlabeled references:
489-
* Line 2 ('<test_file_basename>:2'): `` ```{theorem name="Pythagorean theorem"}
490-
`` -> `Manual conversion required: Use ::: {#thm-<id>} syntax. See
489+
* Line 2 ('<test_file_basename>:2'): `` ```{theorem name="Pythagorean theorem"} `` -> `Manual
490+
conversion required: Use ::: {#thm-<id>} syntax. See
491491
https://quarto.org/docs/authoring/cross-references.html#theorems-and-proofs`
492492
493493
i Summary of conversion requirements:
494494
* 1 Theorem Block Unlabeled reference
495495
! Theorem environments require manual restructuring
496496
Bookdown old syntax WITHOUT label: ```{theorem chunk_name}
497497
Quarto syntax: :::{#thm-label}
498-
See:
499-
<https://quarto.org/docs/authoring/cross-references.html#theorems-and-proofs>
498+
See: <https://quarto.org/docs/authoring/cross-references.html#theorems-and-proofs>
500499
501500

502501
# detects theorem div syntax correctly

tests/testthat/test-convert-bookdown.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ test_that("detects theorem block with label correctly", {
211211
})
212212

213213
test_that("detects theorem block without label correctly", {
214+
local_reproducible_output(width = 100)
214215
test_file <- local_rmd_file(
215216
"# Test Document",
216217
"```{theorem name=\"Pythagorean theorem\"}",

0 commit comments

Comments
 (0)