@@ -94,49 +94,6 @@ describe("octokit.request()", () => {
9494 return octokit . request ( "GET /" ) ;
9595 } ) ;
9696
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-
14097 it ( 'octokit.request.endpoint("GET /")' , ( ) => {
14198 const octokit = new Octokit ( ) ;
14299 const requestOptions = octokit . request . endpoint ( "GET /" ) ;
0 commit comments