diff options
author | 2024-02-01 17:47:28 +0000 | |
---|---|---|
committer | 2024-02-01 17:47:28 +0000 | |
commit | 192938c7648daafc8e912e5260b567ded232d0cd (patch) | |
tree | 9c0d94effe4090a0b0276b61795a947191fa0c1b /packages/integrations/netlify/test/functions/cookies.test.js | |
parent | 33e482f2d0a3db25cf38f9918d3e0ad1a138be63 (diff) | |
download | astro-192938c7648daafc8e912e5260b567ded232d0cd.tar.gz astro-192938c7648daafc8e912e5260b567ded232d0cd.tar.zst astro-192938c7648daafc8e912e5260b567ded232d0cd.zip |
[ci] format
Diffstat (limited to 'packages/integrations/netlify/test/functions/cookies.test.js')
-rw-r--r-- | packages/integrations/netlify/test/functions/cookies.test.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/integrations/netlify/test/functions/cookies.test.js b/packages/integrations/netlify/test/functions/cookies.test.js index 56a414d17..cb81d097a 100644 --- a/packages/integrations/netlify/test/functions/cookies.test.js +++ b/packages/integrations/netlify/test/functions/cookies.test.js @@ -24,7 +24,7 @@ describe('Cookies', () => { expect(resp.headers.getSetCookie()).to.eql(['foo=foo; HttpOnly', 'bar=bar; HttpOnly']); }); - it("renders dynamic 404 page", async () => { + it('renders dynamic 404 page', async () => { const entryURL = new URL( './fixtures/cookies/.netlify/functions-internal/ssr/ssr.mjs', import.meta.url @@ -33,14 +33,14 @@ describe('Cookies', () => { const resp = await handler( new Request('http://example.com/nonexistant-page', { headers: { - "x-test": "bar" - } + 'x-test': 'bar', + }, }), {} ); expect(resp.status).to.equal(404); - const text = await resp.text() - expect(text).to.contain("This is my custom 404 page"); - expect(text).to.contain("x-test: bar"); - }) + const text = await resp.text(); + expect(text).to.contain('This is my custom 404 page'); + expect(text).to.contain('x-test: bar'); + }); }); |