9
9
"context"
10
10
"fmt"
11
11
"net/http"
12
- "strings"
13
12
"testing"
14
13
15
14
"github.com/google/go-cmp/cmp"
@@ -19,14 +18,8 @@ func TestAppsService_ListRepos(t *testing.T) {
19
18
t .Parallel ()
20
19
client , mux , _ := setup (t )
21
20
22
- wantAcceptHeaders := []string {
23
- mediaTypeTopicsPreview ,
24
- mediaTypeRepositoryVisibilityPreview ,
25
- mediaTypeRepositoryTemplatePreview ,
26
- }
27
21
mux .HandleFunc ("/installation/repositories" , func (w http.ResponseWriter , r * http.Request ) {
28
22
testMethod (t , r , "GET" )
29
- testHeader (t , r , "Accept" , strings .Join (wantAcceptHeaders , ", " ))
30
23
testFormValues (t , r , values {
31
24
"page" : "1" ,
32
25
"per_page" : "2" ,
@@ -60,14 +53,8 @@ func TestAppsService_ListUserRepos(t *testing.T) {
60
53
t .Parallel ()
61
54
client , mux , _ := setup (t )
62
55
63
- wantAcceptHeaders := []string {
64
- mediaTypeTopicsPreview ,
65
- mediaTypeRepositoryVisibilityPreview ,
66
- mediaTypeRepositoryTemplatePreview ,
67
- }
68
56
mux .HandleFunc ("/user/installations/1/repositories" , func (w http.ResponseWriter , r * http.Request ) {
69
57
testMethod (t , r , "GET" )
70
- testHeader (t , r , "Accept" , strings .Join (wantAcceptHeaders , ", " ))
71
58
testFormValues (t , r , values {
72
59
"page" : "1" ,
73
60
"per_page" : "2" ,
0 commit comments