Skip to content

Commit

Permalink
Don't supply deprecated binary argument
Browse files Browse the repository at this point in the history
Closes #110
  • Loading branch information
lionel- committed Jun 18, 2021
1 parent 22f6ce0 commit 570e55c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,6 +1,6 @@
Package: vdiffr
Title: Visual Regression Testing and Graphical Diffing
Version: 1.0.1
Version: 1.0.2
Authors@R: c(
person("Lionel", "Henry", , "lionel@rstudio.com", c("cre", "aut")),
person("Thomas Lin", "Pedersen", , "thomas.pedersen@rstudio.com",
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
@@ -1,4 +1,4 @@
# vdiffr 1.0.1
# vdiffr 1.0.2

* testthat no longer auto-deletes snapshot files that were not
generated because of an unexpected error or a `skip()`
Expand Down
4 changes: 2 additions & 2 deletions R/expect-doppelganger.R
Expand Up @@ -128,8 +128,8 @@ expect_doppelganger <- function(title,
testthat::expect_snapshot_file(
testcase,
name = file,
binary = FALSE,
cran = cran
cran = cran,
compare = testthat::compare_file_text
),
expectation_failure = function(cnd) {
if (is_snapshot_stale(title, testcase)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-expect-doppelganger.R
Expand Up @@ -47,7 +47,7 @@ test_that("stale snapshots are skipped", {
return()
}

cnd <- catch_cnd(expect_doppelganger(title, plot))
cnd <- catch_cnd(expect_doppelganger(title, plot), "skip")
expect_s3_class(cnd, "skip")
file.remove(new_path)
})
Expand Down

0 comments on commit 570e55c

Please sign in to comment.