@@ -19,7 +19,7 @@ func TestProjectsService_ListOrganizationProjects(t *testing.T) {
19
19
fmt .Fprint (w , `[{"id":1,"title":"T1","created_at":"2011-01-02T15:04:05Z","updated_at":"2012-01-02T15:04:05Z"}]` )
20
20
})
21
21
22
- opts := & ListProjectsOptions {Q : "alpha" , ListOptions : ListOptions { Page : 2 , PerPage : 1 } }
22
+ opts := & ListProjectsOptions {Query : "alpha" , After : "2" , Before : "1" }
23
23
ctx := context .Background ()
24
24
projects , _ , err := client .Projects .ListOrganizationProjects (ctx , "o" , opts )
25
25
if err != nil {
@@ -80,11 +80,11 @@ func TestProjectsService_ListUserProjects(t *testing.T) {
80
80
mux .HandleFunc ("/users/u/projectsV2" , func (w http.ResponseWriter , r * http.Request ) {
81
81
testMethod (t , r , "GET" )
82
82
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" })
84
84
fmt .Fprint (w , `[{"id":2,"title":"UProj","created_at":"2011-01-02T15:04:05Z","updated_at":"2012-01-02T15:04:05Z"}]` )
85
85
})
86
86
87
- opts := & ListProjectsOptions {Q : "beta" , ListOptions : ListOptions { Page : 1 , PerPage : 2 } }
87
+ opts := & ListProjectsOptions {Query : "beta" , Before : "1" , After : "2" , PerPage : 2 }
88
88
ctx := context .Background ()
89
89
projects , _ , err := client .Projects .ListByUser (ctx , "u" , opts )
90
90
if err != nil {
0 commit comments