Skip to content

Commit

Permalink
skip file snapshots on non-mac
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed May 6, 2024
1 parent 5856343 commit 549fff3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/testthat/test-parse.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ test_that("parse works", {
expect_s3_class(parsed, "marquee_parsed")
expect_true(is_parsed(parsed))

file <- tempfile()
write.csv(parsed[, !names(parsed) %in% c("background", "features", "bullets")], file)
expect_snapshot_file(file, "parsed.csv")

parsed_with_html <- marquee_parse(markdown_test, ignore_html = FALSE)
expect_equal(parsed$text[-17], parsed_with_html$text[-17])
expect_equal(parsed_with_html$text[17], " lines. <span>WHAT</span>")

skip_on_os("windows")
skip_on_os("linux")
file <- tempfile()
write.csv(parsed[, !names(parsed) %in% c("background", "features", "bullets")], file)
expect_snapshot_file(file, "parsed.csv")
})

0 comments on commit 549fff3

Please sign in to comment.