@@ -94,49 +94,6 @@ describe("octokit.request()", () => {
94
94
return octokit . request ( "GET /" ) ;
95
95
} ) ;
96
96
97
- it ( "previews" , async ( ) => {
98
- const mock = fetchMock
99
- . sandbox ( )
100
- . getOnce (
101
- "https://api.github.com/" ,
102
- { } ,
103
- {
104
- headers : {
105
- accept :
106
- "application/vnd.github.foo-preview+json,application/vnd.github.bar-preview+json" ,
107
- "user-agent" : userAgent ,
108
- } ,
109
- }
110
- )
111
- . getOnce (
112
- "https://api.github.com/" ,
113
- { } ,
114
- {
115
- headers : {
116
- accept :
117
- "application/vnd.github.foo-preview.raw,application/vnd.github.bar-preview.raw,application/vnd.github.baz-preview.raw" ,
118
- "user-agent" : userAgent ,
119
- } ,
120
- overwriteRoutes : false ,
121
- }
122
- ) ;
123
-
124
- const octokit = new Octokit ( {
125
- previews : [ "foo" , "bar-preview" ] ,
126
- request : {
127
- fetch : mock ,
128
- } ,
129
- } ) ;
130
-
131
- await octokit . request ( "/" ) ;
132
- await octokit . request ( "/" , {
133
- mediaType : {
134
- previews : [ "bar" , "baz-preview" ] ,
135
- format : "raw" ,
136
- } ,
137
- } ) ;
138
- } ) ;
139
-
140
97
it ( 'octokit.request.endpoint("GET /")' , ( ) => {
141
98
const octokit = new Octokit ( ) ;
142
99
const requestOptions = octokit . request . endpoint ( "GET /" ) ;
0 commit comments