Skip to content

Commit

Permalink
fix record
Browse files Browse the repository at this point in the history
  • Loading branch information
awaltzforvenus committed Jul 31, 2024
1 parent ab11383 commit d95a527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SnapshotTesting/AssertSnapshot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public func verifySnapshot<Value, Format>(
// But, if we're recording, don't bother checking the bundle, since we aren't comparing it to anything, and
// want the new file to be generated in the source directory, not the bundle.
var snapshotFileUrlCandidate: URL?
if !recording {
if !record {
let thisBundle = Bundle(for: CleanCounterBetweenTestCases.self)
let resourcePath = thisBundle.path(forResource: "\(testName).\(identifier)", ofType: snapshotting.pathExtension)
snapshotFileUrlCandidate = resourcePath.map({ URL(fileURLWithPath: $0) })
Expand Down

0 comments on commit d95a527

Please sign in to comment.