Skip to content

Commit

Permalink
revert snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Oct 6, 2023
1 parent a2d56f3 commit a2dda58
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 40 deletions.
23 changes: 0 additions & 23 deletions tests/testthat/_snaps/contr.deviation.md

This file was deleted.

14 changes: 0 additions & 14 deletions tests/testthat/_snaps/data_write.md

This file was deleted.

5 changes: 2 additions & 3 deletions tests/testthat/test-data_write.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ test_that("data_write, SPSS, mixed types of labelled vectors", {
# expect message, but no error
skip_if_not_installed("withr")
withr::with_tempdir(code = {
expect_snapshot(data_write(d, "test.sav"))
expect_message(data_write(d, "test.sav"), regex = "Preparing")
})

})


Expand Down Expand Up @@ -150,7 +149,7 @@ test_that("data_write, existing variable label but missing value labels", {
)
d$a <- assign_labels(d$a, variable = "First")
# expect message, but no error
expect_snapshot(data_write(d, tmp))
expect_message(data_write(d, tmp), regex = "Preparing")

# check if data is really the same
d2 <- data_read(tmp)
Expand Down

0 comments on commit a2dda58

Please sign in to comment.