Skip to content

Commit f9bc543

Browse files
committed
Fix lints
1 parent c4afd23 commit f9bc543

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/index.test.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)