From 7bf3bed1f8b1ce59e7d39ea6d75f5a3156f6cc88 Mon Sep 17 00:00:00 2001 From: matthewp Date: Tue, 29 Mar 2022 20:59:59 +0000 Subject: [PATCH] [ci] format --- src/vite-plugin-astro-server/index.ts | 2 +- test/ssr-api-route.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vite-plugin-astro-server/index.ts b/src/vite-plugin-astro-server/index.ts index 3294b4948a9b..87346af691ea 100644 --- a/src/vite-plugin-astro-server/index.ts +++ b/src/vite-plugin-astro-server/index.ts @@ -45,7 +45,7 @@ async function writeWebResponse(res: http.ServerResponse, webResponse: Response) const { status, headers, body } = webResponse; res.writeHead(status, Object.fromEntries(headers.entries())); if (body) { - if(body instanceof Readable) { + if (body instanceof Readable) { body.pipe(res); return; } else { diff --git a/test/ssr-api-route.test.js b/test/ssr-api-route.test.js index cf053a8db830..54991e80a5b8 100644 --- a/test/ssr-api-route.test.js +++ b/test/ssr-api-route.test.js @@ -50,8 +50,8 @@ describe('API routes in SSR', () => { it('Can POST to API routes', async () => { const response = await fixture.fetch('/food.json', { method: 'POST', - body: `some data` - }) + body: `some data`, + }); expect(response.status).to.equal(200); const text = await response.text(); expect(text).to.equal(`ok`);