@@ -15,7 +15,7 @@ func Test_encodeListOptions(t *testing.T) {
1515 Page : 10 ,
1616 Size : 30 ,
1717 }
18- want := "page=10& limit=30"
18+ want := "limit=30&page=10 "
1919 got := encodeListOptions (opts )
2020 if got != want {
2121 t .Errorf ("Want encoded list options %q, got %q" , want , got )
@@ -29,7 +29,7 @@ func Test_encodeIssueListOptions(t *testing.T) {
2929 Open : true ,
3030 Closed : true ,
3131 }
32- want := "page=10& limit=30&state=all"
32+ want := "limit=30&page=10 &state=all"
3333 got := encodeIssueListOptions (opts )
3434 if got != want {
3535 t .Errorf ("Want encoded issue list options %q, got %q" , want , got )
@@ -43,7 +43,7 @@ func Test_encodeIssueListOptions_Closed(t *testing.T) {
4343 Open : false ,
4444 Closed : true ,
4545 }
46- want := "page=10& limit=30&state=closed"
46+ want := "limit=30&page=10 &state=closed"
4747 got := encodeIssueListOptions (opts )
4848 if got != want {
4949 t .Errorf ("Want encoded issue list options %q, got %q" , want , got )
@@ -58,7 +58,7 @@ func Test_encodePullRequestListOptions(t *testing.T) {
5858 Open : true ,
5959 Closed : true ,
6060 }
61- want := "page=10& limit=30&state=all"
61+ want := "limit=30&page=10 &state=all"
6262 got := encodePullRequestListOptions (opts )
6363 if got != want {
6464 t .Errorf ("Want encoded pr list options %q, got %q" , want , got )
@@ -73,7 +73,7 @@ func Test_encodePullRequestListOptions_Closed(t *testing.T) {
7373 Open : false ,
7474 Closed : true ,
7575 }
76- want := "page=10& limit=30&state=closed"
76+ want := "limit=30&page=10 &state=closed"
7777 got := encodePullRequestListOptions (opts )
7878 if got != want {
7979 t .Errorf ("Want encoded pr list options %q, got %q" , want , got )
0 commit comments