@@ -19,7 +19,7 @@ func TestProjectsService_ListOrganizationProjects(t *testing.T) {
1919 fmt .Fprint (w , `[{"id":1,"title":"T1","created_at":"2011-01-02T15:04:05Z","updated_at":"2012-01-02T15:04:05Z"}]` )
2020 })
2121
22- opts := & ListProjectsOptions {Q : "alpha" , ListOptions : ListOptions { Page : 2 , PerPage : 1 } }
22+ opts := & ListProjectsOptions {Query : "alpha" , After : "2" , Before : "1" }
2323 ctx := context .Background ()
2424 projects , _ , err := client .Projects .ListOrganizationProjects (ctx , "o" , opts )
2525 if err != nil {
@@ -80,11 +80,11 @@ func TestProjectsService_ListUserProjects(t *testing.T) {
8080 mux .HandleFunc ("/users/u/projectsV2" , func (w http.ResponseWriter , r * http.Request ) {
8181 testMethod (t , r , "GET" )
8282 testHeader (t , r , "Accept" , mediaTypeProjectsPreview )
83- testFormValues (t , r , values {"q" : "beta" , "page " : "1" , "per_page" : "2" })
83+ testFormValues (t , r , values {"q" : "beta" , "before " : "1" , "after" : "2 " , "per_page" : "2" })
8484 fmt .Fprint (w , `[{"id":2,"title":"UProj","created_at":"2011-01-02T15:04:05Z","updated_at":"2012-01-02T15:04:05Z"}]` )
8585 })
8686
87- opts := & ListProjectsOptions {Q : "beta" , ListOptions : ListOptions { Page : 1 , PerPage : 2 } }
87+ opts := & ListProjectsOptions {Query : "beta" , Before : "1" , After : "2" , PerPage : 2 }
8888 ctx := context .Background ()
8989 projects , _ , err := client .Projects .ListByUser (ctx , "u" , opts )
9090 if err != nil {
0 commit comments