|
|
@ -27,6 +27,7 @@ func TestIssuesService_List_all(t *testing.T) { |
|
|
"sort": "updated", |
|
|
"sort": "updated", |
|
|
"direction": "asc", |
|
|
"direction": "asc", |
|
|
"since": "2002-02-10T15:30:00Z", |
|
|
"since": "2002-02-10T15:30:00Z", |
|
|
|
|
|
"page": "1", |
|
|
}) |
|
|
}) |
|
|
fmt.Fprint(w, `[{"number":1}]`) |
|
|
fmt.Fprint(w, `[{"number":1}]`) |
|
|
}) |
|
|
}) |
|
|
@ -34,6 +35,7 @@ func TestIssuesService_List_all(t *testing.T) { |
|
|
opt := &IssueListOptions{ |
|
|
opt := &IssueListOptions{ |
|
|
"all", "closed", []string{"a", "b"}, "updated", "asc", |
|
|
"all", "closed", []string{"a", "b"}, "updated", "asc", |
|
|
time.Date(2002, time.February, 10, 15, 30, 0, 0, time.UTC), |
|
|
time.Date(2002, time.February, 10, 15, 30, 0, 0, time.UTC), |
|
|
|
|
|
1, |
|
|
} |
|
|
} |
|
|
issues, err := client.Issues.List(true, opt) |
|
|
issues, err := client.Issues.List(true, opt) |
|
|
|
|
|
|
|
|
|