From 2a8db2af5d5a7f42641dcb79e14b175c2d3bb0f2 Mon Sep 17 00:00:00 2001 From: Taombawkry Date: Thu, 8 Aug 2024 14:32:02 +0200 Subject: [PATCH] chore; type addition --- nodejs/tests/api.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs/tests/api.spec.ts b/nodejs/tests/api.spec.ts index d56a846..2acaadc 100644 --- a/nodejs/tests/api.spec.ts +++ b/nodejs/tests/api.spec.ts @@ -43,7 +43,7 @@ test('should throw axios error object if set wrapResponseErrors to false', async }) server.use( - rest.get('https://api.hackmd.io/v1/me', (req, res, ctx) => { + rest.get('https://api.hackmd.io/v1/me', (req: any, res: (arg0: any) => any, ctx: { status: (arg0: number) => any }) => { return res(ctx.status(429)) }), )