Skip to content

Commit ae7051b

Browse files
committed
Fix typo
1 parent d899e12 commit ae7051b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/snapshot-file.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ snapshot_file_equal <- function(
236236

237237
# We want to fail on CI since this suggests that the user has failed
238238
# to record the value locally
239-
if (on_ci()) {
239+
if (fail_on_new) {
240240
return(fail(message, trace_env = trace_env))
241241
} else {
242242
testthat_warn(message)

0 commit comments

Comments
 (0)