fix starts_with and ends_wih spelling

Change-Id: I1e475e8187f6e793cd9f9029af93a7d80603b26d
This commit is contained in:
buyuxiang
2022-02-14 14:41:15 +08:00
parent 5c03e0d325
commit 5bce59c583
13 changed files with 278 additions and 22 deletions

View File

@@ -126,7 +126,7 @@ func (s *StepRequestValidation) AssertRegexp(jmesPath string, expected interface
func (s *StepRequestValidation) AssertStartsWith(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
v := Validator{
Check: jmesPath,
Assert: "startswith",
Assert: "starts_with",
Expect: expected,
Message: msg,
}
@@ -137,7 +137,7 @@ func (s *StepRequestValidation) AssertStartsWith(jmesPath string, expected inter
func (s *StepRequestValidation) AssertEndsWith(jmesPath string, expected interface{}, msg string) *StepRequestValidation {
v := Validator{
Check: jmesPath,
Assert: "endswith",
Assert: "ends_with",
Expect: expected,
Message: msg,
}