go-common/app/admin/main/workflow/service/platform_test.go

17 lines
404 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestPlatformChallCount(t *testing.T) {
convey.Convey("PlatformChallCount", t, func() {
challCount, err := s.PlatformChallCount(context.Background(), 1, map[int8]int64{2: 11})
convey.So(err, convey.ShouldBeNil)
convey.So(challCount.TotalCount, convey.ShouldBeGreaterThanOrEqualTo, int32(0))
})
}