Skip to content

Commit

Permalink
Fix a broken test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
younata committed Sep 12, 2024
1 parent 638c2f0 commit 9f8a4cf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Sources/NimbleSharedTestHelpers/utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,14 @@ public class NimbleHelper: NSObject {
}

@objc public class func expectFailureMessageRegex(_ regex: NSString, block: () -> Void, file: FileString, line: UInt) {
fail("erp!")
failsWithErrorRegex(
String(describing: regex),
fileID: "Unknown/\(file)",
filePath: file,
line: line,
column: 0,
closure: block
)
}
}
#endif
Expand Down

0 comments on commit 9f8a4cf

Please sign in to comment.