@@ -32,14 +32,16 @@ func TestIssuesService_List_all(t *testing.T) {
3232 "since" : "2002-02-10T15:30:00Z" ,
3333 "page" : "1" ,
3434 "per_page" : "2" ,
35+ "before" : "foo" ,
36+ "after" : "bar" ,
3537 })
3638 fmt .Fprint (w , `[{"number":1}]` )
3739 })
3840
3941 opt := & IssueListOptions {
4042 "all" , "closed" , []string {"a" , "b" }, "updated" , "asc" ,
4143 time .Date (2002 , time .February , 10 , 15 , 30 , 0 , 0 , time .UTC ),
42- ListOptions {Page : 1 , PerPage : 2 },
44+ ListCursorOptions { Before : "foo" , After : "bar" }, ListOptions {Page : 1 , PerPage : 2 },
4345 }
4446 ctx := context .Background ()
4547 issues , _ , err := client .Issues .List (ctx , true , opt )
@@ -155,14 +157,17 @@ func TestIssuesService_ListByRepo(t *testing.T) {
155157 "sort" : "updated" ,
156158 "direction" : "asc" ,
157159 "since" : "2002-02-10T15:30:00Z" ,
160+ "per_page" : "1" ,
161+ "before" : "foo" ,
162+ "after" : "bar" ,
158163 })
159164 fmt .Fprint (w , `[{"number":1}]` )
160165 })
161166
162167 opt := & IssueListByRepoOptions {
163168 "*" , "closed" , "a" , "c" , "m" , []string {"a" , "b" }, "updated" , "asc" ,
164169 time .Date (2002 , time .February , 10 , 15 , 30 , 0 , 0 , time .UTC ),
165- ListOptions {0 , 0 },
170+ ListCursorOptions { PerPage : 1 , Before : "foo" , After : "bar" }, ListOptions {0 , 0 },
166171 }
167172 ctx := context .Background ()
168173 issues , _ , err := client .Issues .ListByRepo (ctx , "o" , "r" , opt )
0 commit comments