Fix validator_test.go

pull/740/head
Vic Shóstak 4 years ago committed by GitHub
parent 9dc7d16f11
commit 558925a852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      validator_test.go

@ -8511,7 +8511,7 @@ func TestTranslations(t *testing.T) {
fe = errs[0] fe = errs[0]
Equal(t, fe.Tag(), "gt") Equal(t, fe.Tag(), "gt")
Equal(t, fe.Namespace(), "Test2.Value") Equal(t, fe.Namespace(), "Test2.Value")
Equal(t, fe.Translate(trans), "Key: 'Test2.Value' Error:Field validation for 'Value' failed on the 'gt' tag") Equal(t, fe.Translate(trans), "key: 'Test2.Value', error: field validation for 'Value' failed on the 'gt' tag")
} }
func TestTranslationErrors(t *testing.T) { func TestTranslationErrors(t *testing.T) {

Loading…
Cancel
Save