diff --git a/Tests/Shared/TestCase+Extensions.swift b/Tests/Shared/TestCase+Extensions.swift index a6daa47..bb30b1e 100644 --- a/Tests/Shared/TestCase+Extensions.swift +++ b/Tests/Shared/TestCase+Extensions.swift @@ -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() } }