From 1862fb44eb1008e17222130ff74a7a589aacecfd Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper Date: Wed, 15 Nov 2023 23:41:21 +0000 Subject: [PATCH] [ci] format --- packages/integrations/node/src/nodeMiddleware.ts | 4 ++-- packages/integrations/node/test/api-route.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/integrations/node/src/nodeMiddleware.ts b/packages/integrations/node/src/nodeMiddleware.ts index 7f242809ee..4fd0a4bc23 100644 --- a/packages/integrations/node/src/nodeMiddleware.ts +++ b/packages/integrations/node/src/nodeMiddleware.ts @@ -78,9 +78,9 @@ async function writeWebResponse(app: NodeApp, res: ServerResponse, webResponse: if (webResponse.body) { try { const reader = webResponse.body.getReader(); - res.on("close", () => { + res.on('close', () => { reader.cancel(); - }) + }); let result = await reader.read(); while (!result.done) { res.write(result.value); diff --git a/packages/integrations/node/test/api-route.test.js b/packages/integrations/node/test/api-route.test.js index 7d9422ab4d..3138191880 100644 --- a/packages/integrations/node/test/api-route.test.js +++ b/packages/integrations/node/test/api-route.test.js @@ -102,7 +102,7 @@ describe('API routes', () => { req.send(); await new Promise((resolve) => setTimeout(resolve, 500)); - res.emit("close"); + res.emit('close'); await done;