99 "context"
1010 "fmt"
1111 "net/http"
12- "strings"
1312 "testing"
1413
1514 "github.com/google/go-cmp/cmp"
@@ -19,14 +18,8 @@ func TestAppsService_ListRepos(t *testing.T) {
1918 t .Parallel ()
2019 client , mux , _ := setup (t )
2120
22- wantAcceptHeaders := []string {
23- mediaTypeTopicsPreview ,
24- mediaTypeRepositoryVisibilityPreview ,
25- mediaTypeRepositoryTemplatePreview ,
26- }
2721 mux .HandleFunc ("/installation/repositories" , func (w http.ResponseWriter , r * http.Request ) {
2822 testMethod (t , r , "GET" )
29- testHeader (t , r , "Accept" , strings .Join (wantAcceptHeaders , ", " ))
3023 testFormValues (t , r , values {
3124 "page" : "1" ,
3225 "per_page" : "2" ,
@@ -60,14 +53,8 @@ func TestAppsService_ListUserRepos(t *testing.T) {
6053 t .Parallel ()
6154 client , mux , _ := setup (t )
6255
63- wantAcceptHeaders := []string {
64- mediaTypeTopicsPreview ,
65- mediaTypeRepositoryVisibilityPreview ,
66- mediaTypeRepositoryTemplatePreview ,
67- }
6856 mux .HandleFunc ("/user/installations/1/repositories" , func (w http.ResponseWriter , r * http.Request ) {
6957 testMethod (t , r , "GET" )
70- testHeader (t , r , "Accept" , strings .Join (wantAcceptHeaders , ", " ))
7158 testFormValues (t , r , values {
7259 "page" : "1" ,
7360 "per_page" : "2" ,
0 commit comments