bangumi_test.go 442 B

1234567891011121314151617181920212223
  1. package service
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. func Test_Bangumi(t *testing.T) {
  7. Convey("bangumi", t, func() {
  8. res, err := s.BangumiContent(c, 1, 10, 1, "douban")
  9. So(err, ShouldBeNil)
  10. So(res, ShouldNotBeEmpty)
  11. })
  12. }
  13. func Test_BangumiOff(t *testing.T) {
  14. Convey("bangumi", t, func() {
  15. res, err := s.BangumiOff(c, 1, 10, 1, 1, "douban")
  16. So(err, ShouldBeNil)
  17. So(res, ShouldNotBeEmpty)
  18. })
  19. }