Fix validator_test.go

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

@ -8480,7 +8480,7 @@ func TestTranslations(t *testing.T) {
nl := nl.New() nl := nl.New()
uni2 := ut.New(nl, nl) uni2 := ut.New(nl, nl)
trans2, _ := uni2.GetTranslator("nl") trans2, _ := uni2.GetTranslator("nl")
Equal(t, fe.Translate(trans2), "Key: 'Test.Value' Error:Field validation for 'Value' failed on the 'required' tag") Equal(t, fe.Translate(trans2), "key: 'Test.Value', error: field validation for 'Value' failed on the 'required' tag")
terrs := errs.Translate(trans) terrs := errs.Translate(trans)
Equal(t, len(terrs), 1) Equal(t, len(terrs), 1)

Loading…
Cancel
Save