bilibili-backup/app/interface/main/spread/service/bangumi_test.go

24 lines
442 B
Go
Raw Normal View History

2019-04-22 10:59:20 +08:00
package service
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func Test_Bangumi(t *testing.T) {
Convey("bangumi", t, func() {
res, err := s.BangumiContent(c, 1, 10, 1, "douban")
So(err, ShouldBeNil)
So(res, ShouldNotBeEmpty)
})
}
func Test_BangumiOff(t *testing.T) {
Convey("bangumi", t, func() {
res, err := s.BangumiOff(c, 1, 10, 1, 1, "douban")
So(err, ShouldBeNil)
So(res, ShouldNotBeEmpty)
})
}