Skip to content

Commit

Permalink
Remove snapshot causing error on windows check()
Browse files Browse the repository at this point in the history
* Removed test of {cli} formatting in `galah_identify()`
  • Loading branch information
daxkellie committed Nov 13, 2023
1 parent aa3f9b2 commit 90bd1f1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/testthat/test-galah_identify.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ test_that("galah_identify warns for deprecated `search = TRUE` argument", {
})

## NOTE: Not certain if this is a necessary test
cli::test_that_cli("Partial taxonomic match message theming", {
testthat::local_edition(3)
testthat::expect_snapshot(local({
cli::cli_div(theme = list(span.bold = list("font-weight" = "bold"),
span.yellow = list(color = "yellow")))
c(
cli::cli_text("Matched {.bold 2 of 3} taxonomic search terms in selected atlas (Australia)."),
"!" = cli::cli_text("{.yellow 1 unmatched search term:}"),
cli::cli_text(format_error_bullets(c("{.yellow \"https://id.biodiversity.org.au/node/apni/291047\"}")))
)
}))
})
# cli::test_that_cli("Partial taxonomic match message theming", {
# testthat::local_edition(3)
# testthat::expect_snapshot(local({
# cli::cli_div(theme = list(span.bold = list("font-weight" = "bold"),
# span.yellow = list(color = "yellow")))
# c(
# cli::cli_text("Matched {.bold 2 of 3} taxonomic search terms in selected atlas (Australia)."),
# "!" = cli::cli_text("{.yellow 1 unmatched search term:}"),
# cli::cli_text(format_error_bullets(c("{.yellow \"https://id.biodiversity.org.au/node/apni/291047\"}")))
# )
# }))
# })

0 comments on commit 90bd1f1

Please sign in to comment.