Skip to content

Commit a20a6d8

Browse files
committed
Remove linebreaks from test descriptions in snapshots; fixes #1900
1 parent 5659da8 commit a20a6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/snapshot-reporter.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ SnapshotReporter <- R6::R6Class("SnapshotReporter",
3535
},
3636

3737
start_test = function(context, test) {
38-
self$test <- test
38+
self$test <- gsub("\n", "", test)
3939
},
4040

4141
# Called by expectation

0 commit comments

Comments
 (0)