diff options
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'); + }); }); |