Skip to content

Commit ecebeac

Browse files
committed
test: cover option-less Workwx ctor
1 parent 34004e6 commit ecebeac

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

client_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package workwx
2+
3+
import (
4+
"testing"
5+
6+
c "github.com/smartystreets/goconvey/convey"
7+
)
8+
9+
func TestWorkwxCtor(t *testing.T) {
10+
c.Convey("不带参数构造 Workwx 实例", t, func() {
11+
a := New("testcorpid")
12+
13+
c.Convey("corpid 应该正确设置了", func() {
14+
c.So(a.CorpID, c.ShouldEqual, "testcorpid")
15+
})
16+
})
17+
}

0 commit comments

Comments
 (0)