Skip to content

Commit 6f9417b

Browse files
committed
Remove unused field; revert snapshot changes
1 parent b4cc9a0 commit 6f9417b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

R/reporter-check.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ CheckReporter <- R6::R6Class(
1313
skips = NULL,
1414
warnings = NULL,
1515
n_ok = 0L,
16-
has_snapshot_failure = FALSE,
1716

1817
initialize = function(...) {
1918
self$capabilities$parallel_support <- TRUE

tests/testthat/test-snapshot-file.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
test_that("expect_snapshot_file works", {
2-
path <- write_tmp_lines(letters[-1])
2+
path <- write_tmp_lines(letters)
33
expect_snapshot_file(path, "foo.r", compare = compare_file_text)
44

55
path <- withr::local_tempfile()

tests/testthat/test-snapshot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test_that("can snapshot everything", {
1515
print("1")
1616
message("2")
1717
warning("3")
18-
stop("5")
18+
stop("4")
1919
}
2020
expect_snapshot(f(), error = TRUE)
2121
})

0 commit comments

Comments
 (0)