File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1239,22 +1239,22 @@ Note: This matcher allows you to chain any number of matchers together. This pro
1239
1239
// Swift
1240
1240
1241
1241
// passes if .succeeded is returned from the closure
1242
- expect( {
1242
+ expect {
1243
1243
guard case .enumCaseWithAssociatedValueThatIDontCareAbout = actual else {
1244
1244
return .failed(reason: "wrong enum case")
1245
1245
}
1246
1246
1247
1247
return .succeeded
1248
- }) .to(succeed())
1248
+ }.to(succeed())
1249
1249
1250
1250
// passes if .failed is returned from the closure
1251
- expect( {
1251
+ expect {
1252
1252
guard case .enumCaseWithAssociatedValueThatIDontCareAbout = actual else {
1253
1253
return .failed(reason: "wrong enum case")
1254
1254
}
1255
1255
1256
1256
return .succeeded
1257
- }) .notTo(succeed())
1257
+ }.notTo(succeed())
1258
1258
```
1259
1259
1260
1260
The ` String ` provided with ` .failed() ` is shown when the test fails.
You can’t perform that action at this time.
0 commit comments