File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ describe('instantiate client', () => {
228228 const client = new Kernel ( {
229229 baseURL : 'http://localhost:5000/' ,
230230 apiKey : 'My API Key' ,
231- fetch : ( url : RequestInfo | URL ) => {
231+ fetch : ( url : string | URL | Request ) => {
232232 return Promise . resolve (
233233 new Response ( JSON . stringify ( { url, custom : true } ) , {
234234 headers : { 'Content-Type' : 'application/json' } ,
@@ -254,15 +254,9 @@ describe('instantiate client', () => {
254254 const client = new Kernel ( {
255255 baseURL : process . env [ 'TEST_API_BASE_URL' ] ?? 'http://127.0.0.1:4010' ,
256256 apiKey : 'My API Key' ,
257- fetch : ( url : RequestInfo | URL , init ?: RequestInit ) => {
257+ fetch : ( url : string | URL | Request , init ?: RequestInit ) => {
258258 return new Promise < Response > ( ( resolve , reject ) =>
259- setTimeout (
260- ( ) =>
261- defaultFetch ( url , init )
262- . then ( resolve )
263- . catch ( reject ) ,
264- 300 ,
265- ) ,
259+ setTimeout ( ( ) => defaultFetch ( url , init ) . then ( resolve ) . catch ( reject ) , 300 ) ,
266260 ) ;
267261 } ,
268262 } ) ;
You can’t perform that action at this time.
0 commit comments