File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 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:
15101510- ` Expect(resp).To(HaveHTTPHeaderWithValue("Content-Type", "application/json")) ` :
15111511 asserts that the ` Content-Type ` header has exactly the value ` application/json ` .
15121512
1513- - ` Expect(resp).To(HaveHTTPHeaderWithValue(ContainsSubstring ("json"))) ` :
1513+ - ` Expect(resp).To(HaveHTTPHeaderWithValue(ContainSubstring ("json"))) ` :
15141514 asserts that the ` Content-Type ` header contains the substring ` json ` .
15151515
15161516### Asserting on Panics
Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ func Succeed() types.GomegaMatcher {
9292//
9393// These are valid use-cases:
9494//
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"
9898//
9999// It is an error for err to be nil or an object that does not implement the
100100// Error interface
You can’t perform that action at this time.
0 commit comments