Skip to content

Commit b37a017

Browse files
authored
Don't quote snapshots (#1773)
1 parent aae5c4f commit b37a017

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Imports:
3535
R6 (>= 2.2.0),
3636
rlang (>= 1.1.0),
3737
utils,
38-
waldo (>= 0.4.0),
38+
waldo (>= 0.5.0),
3939
withr (>= 2.4.3)
4040
Suggests:
4141
covr,

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# testthat (development version)
22

3+
* `expect_snapshot()` differences no longer use quotes.
4+
35
* `expect_error()`, `expect_warning()`, and `expect_message()` now correctly
46
enforce that the condition is of the expected base class (e.g. error,
57
warning, messsage) even when the `class` argument is used (#1168).

R/snapshot-reporter.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ SnapshotReporter <- R6::R6Class("SnapshotReporter",
5757
x = old, x_arg = "old",
5858
y = value, y_arg = "new",
5959
...,
60-
tolerance = tolerance
60+
tolerance = tolerance,
61+
quote_strings = FALSE
6162
)
6263

6364
if (length(comp) > 0L) {

0 commit comments

Comments
 (0)