Use rethrows

This commit is contained in:
Khoa Pham
2017-09-14 15:00:41 +02:00
parent dcd0841778
commit 2b2a4dfcbb
+3 -3
View File
@@ -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()
}
}