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 1818 withKnownIssue {
1919 reportIssue ( )
2020 } matching: { issue in
21- issue. description == " Issue recorded "
21+ issue. description. hasPrefix ( " Issue recorded " )
2222 }
2323 }
2424
2525 @Test func reportIssue_CustomMessage( ) {
2626 withKnownIssue {
2727 reportIssue ( " Something went wrong " )
2828 } matching: { issue in
29- issue. description == " Issue recorded: Something went wrong"
29+ issue. description. hasSuffix ( " Something went wrong " )
3030 }
3131 }
3232
5151 withExpectedIssue {
5252 }
5353 } matching: { issue in
54- issue. description == " Known issue was not recorded "
54+ issue. description. hasPrefix ( " Known issue was not recorded " )
5555 }
5656 }
5757
6060 withExpectedIssue ( " This didn't fail " ) {
6161 }
6262 } matching: { issue in
63- issue. description == " Known issue was not recorded: This didn't fail"
63+ issue. description. hasSuffix ( " This didn't fail " )
6464 }
6565 }
6666
You can’t perform that action at this time.
0 commit comments