File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -199,11 +199,9 @@ public func verifySnapshot<Value, Format>(
199
199
}
200
200
201
201
let testName = sanitizePathComponent ( testName)
202
- let myBundle = Bundle ( for: CleanCounterBetweenTestCases . self)
203
- let snapshotFileUrl = myBundle. path ( forResource: " \( testName) . \( identifier) " , ofType: snapshotting. pathExtension)
204
- . map { URL ( fileURLWithPath: $0) } ?? snapshotDirectoryUrl
205
- . appendingPathComponent ( " \( testName) . \( identifier) " )
206
- . appendingPathExtension ( snapshotting. pathExtension ?? " " )
202
+ let snapshotFileUrl = snapshotDirectoryUrl
203
+ . appendingPathComponent ( " \( testName) . \( identifier) " )
204
+ . appendingPathExtension ( snapshotting. pathExtension ?? " " )
207
205
let fileManager = FileManager . default
208
206
try fileManager. createDirectory ( at: snapshotDirectoryUrl, withIntermediateDirectories: true )
209
207
You can’t perform that action at this time.
0 commit comments