captcha_test.go 437 B

12345678910111213141516171819202122
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoGetToken(t *testing.T) {
  8. var (
  9. c = context.Background()
  10. bid = "account"
  11. )
  12. convey.Convey("GetToken", t, func(ctx convey.C) {
  13. res, err := d.GetToken(c, bid)
  14. ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldBeNil)
  16. ctx.So(res, convey.ShouldNotBeNil)
  17. })
  18. })
  19. }