We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e59d42 commit a142ed7Copy full SHA for a142ed7
issues_test.go
@@ -1274,7 +1274,8 @@ func TestIssues_213(t *testing.T) {
1274
f := &Form{}
1275
v := validate.Struct(f) // nolint:varnamelen
1276
assert.False(t, v.Validate())
1277
- fmt.Println(v.Errors)
+ // fmt.Println(v.Errors)
1278
+ assert.StrContains(t, v.Errors.String(), "Data is required to not be empty")
1279
1280
f = &Form{
1281
Data: []Person{
@@ -1283,7 +1284,8 @@ func TestIssues_213(t *testing.T) {
1283
1284
}
1285
v = validate.Struct(f) // nolint:varnamelen
1286
1287
1288
+ assert.StrContains(t, v.Errors.String(), "age is required to not be empty")
1289
1290
1291
// https://github.com/gookit/validate/issues/217
0 commit comments