mirror of
https://github.com/hyperoslo/Cache.git
synced 2026-04-07 19:17:36 +00:00
Use rethrows
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import XCTest
|
||||
|
||||
extension XCTestCase {
|
||||
func given(_ description: String, closure: () throws -> Void) throws {
|
||||
func given(_ description: String, closure: () throws -> Void) rethrows {
|
||||
try closure()
|
||||
}
|
||||
|
||||
func when(_ description: String, closure: () throws -> Void) throws {
|
||||
func when(_ description: String, closure: () throws -> Void) rethrows {
|
||||
try closure()
|
||||
}
|
||||
|
||||
func then(_ description: String, closure: () throws -> Void) throws {
|
||||
func then(_ description: String, closure: () throws -> Void) rethrows {
|
||||
try closure()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user