From a1b324b31b185857e1b2c265c9a077c511c5f7d3 Mon Sep 17 00:00:00 2001 From: Arsh Date: Thu, 4 Jan 2024 11:00:47 +0000 Subject: [PATCH] [ci] format --- .../test/units/routing/trailing-slash.test.js | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/astro/test/units/routing/trailing-slash.test.js b/packages/astro/test/units/routing/trailing-slash.test.js index c707c7215a5d..72eed92ddfbd 100644 --- a/packages/astro/test/units/routing/trailing-slash.test.js +++ b/packages/astro/test/units/routing/trailing-slash.test.js @@ -37,23 +37,23 @@ describe('trailingSlash', () => { await container.close(); }); - it('should match the API route when request has a trailing slash', async () => { - const { req, res, text } = createRequestAndResponse({ - method: 'GET', - url: '/api/', - }); - container.handle(req, res); - const json = await text(); - expect(json).to.equal('{"success":true}'); - }); + it('should match the API route when request has a trailing slash', async () => { + const { req, res, text } = createRequestAndResponse({ + method: 'GET', + url: '/api/', + }); + container.handle(req, res); + const json = await text(); + expect(json).to.equal('{"success":true}'); + }); - it('should NOT match the API route when request lacks a trailing slash', async () => { - const { req, res, text } = createRequestAndResponse({ - method: 'GET', - url: '/api', - }); - container.handle(req, res); - expect(await text()).to.equal(''); - expect(res.statusCode).to.equal(404); - }); + it('should NOT match the API route when request lacks a trailing slash', async () => { + const { req, res, text } = createRequestAndResponse({ + method: 'GET', + url: '/api', + }); + container.handle(req, res); + expect(await text()).to.equal(''); + expect(res.statusCode).to.equal(404); + }); });