diff options
author | 2024-01-04 11:00:47 +0000 | |
---|---|---|
committer | 2024-01-04 11:00:47 +0000 | |
commit | a1b324b31b185857e1b2c265c9a077c511c5f7d3 (patch) | |
tree | 7a45f80bb5b22b4118cf58d791f22a60260ae8da | |
parent | 9fd24a546c45d48451da46637c14e7ed54dac76a (diff) | |
download | astro-a1b324b31b185857e1b2c265c9a077c511c5f7d3.tar.gz astro-a1b324b31b185857e1b2c265c9a077c511c5f7d3.tar.zst astro-a1b324b31b185857e1b2c265c9a077c511c5f7d3.zip |
[ci] format
-rw-r--r-- | packages/astro/test/units/routing/trailing-slash.test.js | 36 |
1 files 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 c707c7215..72eed92dd 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); + }); }); |