mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 14:08:30 -05:00
17 lines
320 B
Go
17 lines
320 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestService_Regions(t *testing.T) {
|
||
|
|
Convey("test service regions", t, WithService(func(s *Service) {
|
||
|
|
res, err := s.Regions(context.Background())
|
||
|
|
So(err, ShouldBeNil)
|
||
|
|
So(len(res), ShouldBeGreaterThan, 0)
|
||
|
|
}))
|
||
|
|
}
|