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

@@ -117,7 +117,7 @@ func (v *responseObject) Validate(validators []Validator, variablesMapping map[s
assertMethod := validator.Assert
assertFunc, ok := builtin.Assertions[assertMethod]
if !ok {
return errors.New(fmt.Sprintf("unexpected assertion method: %v", assertMethod))
return errors.New(fmt.Sprintf("unexpected assertMethod: %v", assertMethod))
}
// parse expected value
@@ -151,10 +151,10 @@ func (v *responseObject) Validate(validators []Validator, variablesMapping map[s
if !result {
v.t.Fail()
return errors.New(fmt.Sprintf(
"do assertion failed, assertMethod: %v, expectValue: %v, checkValue: %v",
"do assertion failed, assertMethod: %v, checkValue: %v, expectValue: %v",
assertMethod,
expectValue,
checkValue,
expectValue,
))
}
}