You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
350 B
16 lines
350 B
package service |
|
|
|
import ( |
|
"context" |
|
"testing" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func Test_QueryUserInfo(t *testing.T) { |
|
Convey("query user when user exists", t, func() { |
|
userInfo, err := s.QueryUserInfo(context.Background(), "fengyifeng") |
|
So(err, ShouldBeNil) |
|
So(userInfo.EMail, ShouldEqual, "[email protected]") |
|
}) |
|
}
|
|
|