Skip to content

Commit

Permalink
Improve test to try understand failure on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
r-ash committed Mar 15, 2024
1 parent d2572fa commit e5afd7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Imports:
dplyr (>= 1.1.0),
duckdb (>= 0.10.0),
eppasm (>= 0.7.1),
gt,
first90 (>= 1.6.1),
forcats,
fs,
Expand Down Expand Up @@ -59,7 +60,6 @@ Suggests:
DiagrammeR,
covr,
datamodelr,
gt,
here,
knitr,
lubridate,
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-outputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ test_that("summary report can be translated", {
if (any(grepl('#translate[lang="en"]', content, fixed = TRUE))) {
style_line <- which(grepl('#translate[lang="en"]', content,
fixed = TRUE))
expect_equal(length(style_line), 1)
expect_equal(content[style_line + 1], "display: block;")
} else {
en <- "%23translate%5Blang%3D%22en%22%5D%20%7B%0Adisplay%3A%20block%3B%0A%7D"
Expand All @@ -264,6 +265,7 @@ test_that("summary report can be translated", {
if (any(grepl('#translate[lang="fr"]', content, fixed = TRUE))) {
style_line <- which(grepl('#translate[lang="fr"]', content,
fixed = TRUE))
expect_equal(length(style_line), 1)
expect_equal(content[style_line + 1], "display: block;")
} else {
fr <- "%23translate%5Blang%3D%22fr%22%5D%20%7B%0Adisplay%3A%20block%3B%0A%7D"
Expand Down

0 comments on commit e5afd7b

Please sign in to comment.