26 lines
362 B
Go
26 lines
362 B
Go
|
package form
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestNewFace(t *testing.T) {
|
||
|
t.Run("success", func(t *testing.T) {
|
||
|
var m = struct {
|
||
|
SubjUID string `json:"SubjUID"`
|
||
|
}{
|
||
|
SubjUID: "jqzmd5q3b8o2yxu7",
|
||
|
}
|
||
|
|
||
|
f, err := NewFace(m)
|
||
|
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
|
||
|
assert.Equal(t, "jqzmd5q3b8o2yxu7", f.SubjUID)
|
||
|
})
|
||
|
}
|