@@ -15,7 +15,7 @@ func Test_encodeListOptions(t *testing.T) {
15
15
Page : 10 ,
16
16
Size : 30 ,
17
17
}
18
- want := "page=10&per_page =30"
18
+ want := "page=10&limit =30"
19
19
got := encodeListOptions (opts )
20
20
if got != want {
21
21
t .Errorf ("Want encoded list options %q, got %q" , want , got )
@@ -29,7 +29,7 @@ func Test_encodeIssueListOptions(t *testing.T) {
29
29
Open : true ,
30
30
Closed : true ,
31
31
}
32
- want := "page=10&per_page =30&state=all"
32
+ want := "page=10&limit =30&state=all"
33
33
got := encodeIssueListOptions (opts )
34
34
if got != want {
35
35
t .Errorf ("Want encoded issue list options %q, got %q" , want , got )
@@ -43,7 +43,7 @@ func Test_encodeIssueListOptions_Closed(t *testing.T) {
43
43
Open : false ,
44
44
Closed : true ,
45
45
}
46
- want := "page=10&per_page =30&state=closed"
46
+ want := "page=10&limit =30&state=closed"
47
47
got := encodeIssueListOptions (opts )
48
48
if got != want {
49
49
t .Errorf ("Want encoded issue list options %q, got %q" , want , got )
@@ -58,7 +58,7 @@ func Test_encodePullRequestListOptions(t *testing.T) {
58
58
Open : true ,
59
59
Closed : true ,
60
60
}
61
- want := "page=10&per_page =30&state=all"
61
+ want := "page=10&limit =30&state=all"
62
62
got := encodePullRequestListOptions (opts )
63
63
if got != want {
64
64
t .Errorf ("Want encoded pr list options %q, got %q" , want , got )
@@ -73,7 +73,7 @@ func Test_encodePullRequestListOptions_Closed(t *testing.T) {
73
73
Open : false ,
74
74
Closed : true ,
75
75
}
76
- want := "page=10&per_page =30&state=closed"
76
+ want := "page=10&limit =30&state=closed"
77
77
got := encodePullRequestListOptions (opts )
78
78
if got != want {
79
79
t .Errorf ("Want encoded pr list options %q, got %q" , want , got )
0 commit comments