File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1510,7 +1510,7 @@ Here are some examples:
1510
1510
- ` Expect(resp).To(HaveHTTPHeaderWithValue("Content-Type", "application/json")) ` :
1511
1511
asserts that the ` Content-Type ` header has exactly the value ` application/json ` .
1512
1512
1513
- - ` Expect(resp).To(HaveHTTPHeaderWithValue(ContainsSubstring ("json"))) ` :
1513
+ - ` Expect(resp).To(HaveHTTPHeaderWithValue(ContainSubstring ("json"))) ` :
1514
1514
asserts that the ` Content-Type ` header contains the substring ` json ` .
1515
1515
1516
1516
### Asserting on Panics
Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ func Succeed() types.GomegaMatcher {
92
92
//
93
93
// These are valid use-cases:
94
94
//
95
- // Expect(err).Should(MatchError("an error")) //asserts that err.Error() == "an error"
96
- // Expect(err).Should(MatchError(SomeError)) //asserts that err == SomeError (via reflect.DeepEqual)
97
- // Expect(err).Should(MatchError(ContainsSubstring ("sprocket not found"))) // asserts that edrr.Error() contains substring "sprocket not found"
95
+ // Expect(err).Should(MatchError("an error")) //asserts that err.Error() == "an error"
96
+ // Expect(err).Should(MatchError(SomeError)) //asserts that err == SomeError (via reflect.DeepEqual)
97
+ // Expect(err).Should(MatchError(ContainSubstring ("sprocket not found"))) // asserts that edrr.Error() contains substring "sprocket not found"
98
98
//
99
99
// It is an error for err to be nil or an object that does not implement the
100
100
// Error interface
You can’t perform that action at this time.
0 commit comments