File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,17 @@ func Test_SearchRepositories(t *testing.T) {
7070 "sort" : "stars" ,
7171 "order" : "desc" ,
7272 "page" : "2" ,
73- "per_page" : "10 " ,
73+ "per_page" : "11 " ,
7474 }).andThen (
7575 mockResponse (t , http .StatusOK , mockSearchResult ),
7676 ),
7777 ),
7878 ),
7979 requestArgs : map [string ]interface {}{
80- "query" : "golang test" ,
81- "sort" : "stars" ,
82- "order" : "desc" ,
83- "page" : float64 (2 ),
84- "perPage" : float64 (10 ),
80+ "query" : "golang test" ,
81+ "sort" : "stars" ,
82+ "order" : "desc" ,
83+ "cursor" : "page=2;perPage=10" ,
8584 },
8685 expectError : false ,
8786 expectedResult : mockSearchResult ,
@@ -306,8 +305,6 @@ func Test_SearchCode(t *testing.T) {
306305 "query" : "fmt.Println language:go" ,
307306 "sort" : "indexed" ,
308307 "order" : "desc" ,
309- "page" : float64 (1 ),
310- "perPage" : float64 (30 ),
311308 },
312309 expectError : false ,
313310 expectedResult : mockSearchResult ,
@@ -466,8 +463,6 @@ func Test_SearchUsers(t *testing.T) {
466463 "query" : "location:finland language:go" ,
467464 "sort" : "followers" ,
468465 "order" : "desc" ,
469- "page" : float64 (1 ),
470- "perPage" : float64 (30 ),
471466 },
472467 expectError : false ,
473468 expectedResult : mockSearchResult ,
You can’t perform that action at this time.
0 commit comments