mirror of
https://github.com/volatiletech/authboss.git
synced 2025-07-15 01:24:33 +02:00
Initial validate module.
This commit is contained in:
13
validation_test.go
Normal file
13
validation_test.go
Normal file
@ -0,0 +1,13 @@
|
||||
package authboss
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestErrorList_Error(t *testing.T) {
|
||||
errList := ErrorList{errors.New("one"), errors.New("two")}
|
||||
if e := errList.Error(); e != "one, two" {
|
||||
t.Error("Wrong value for error:", e)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user