@@ -204,7 +204,6 @@ func TestUsersService_ListInvitations(t *testing.T) {
204
204
205
205
mux .HandleFunc ("/user/repository_invitations" , func (w http.ResponseWriter , r * http.Request ) {
206
206
testMethod (t , r , "GET" )
207
- testHeader (t , r , "Accept" , mediaTypeRepositoryInvitationsPreview )
208
207
fmt .Fprintf (w , `[{"id":1}, {"id":2}]` )
209
208
})
210
209
@@ -228,7 +227,6 @@ func TestUsersService_ListInvitations_withOptions(t *testing.T) {
228
227
testFormValues (t , r , values {
229
228
"page" : "2" ,
230
229
})
231
- testHeader (t , r , "Accept" , mediaTypeRepositoryInvitationsPreview )
232
230
fmt .Fprintf (w , `[{"id":1}, {"id":2}]` )
233
231
})
234
232
@@ -243,7 +241,6 @@ func TestUsersService_AcceptInvitation(t *testing.T) {
243
241
244
242
mux .HandleFunc ("/user/repository_invitations/1" , func (w http.ResponseWriter , r * http.Request ) {
245
243
testMethod (t , r , "PATCH" )
246
- testHeader (t , r , "Accept" , mediaTypeRepositoryInvitationsPreview )
247
244
w .WriteHeader (http .StatusNoContent )
248
245
})
249
246
@@ -258,7 +255,6 @@ func TestUsersService_DeclineInvitation(t *testing.T) {
258
255
259
256
mux .HandleFunc ("/user/repository_invitations/1" , func (w http.ResponseWriter , r * http.Request ) {
260
257
testMethod (t , r , "DELETE" )
261
- testHeader (t , r , "Accept" , mediaTypeRepositoryInvitationsPreview )
262
258
w .WriteHeader (http .StatusNoContent )
263
259
})
264
260
0 commit comments