diff options
author | 2023-12-17 15:44:42 +0000 | |
---|---|---|
committer | 2023-12-17 15:44:42 +0000 | |
commit | a07737d545a8fbe6232c1174d36bd916884765ae (patch) | |
tree | 636824f7d6ff7b374fa0b19363ed1678584bed7e /packages/integrations/netlify/test/functions/cookies.test.js | |
parent | 94dcbfed0607d037c591001b5484de74661c90a2 (diff) | |
download | astro-a07737d545a8fbe6232c1174d36bd916884765ae.tar.gz astro-a07737d545a8fbe6232c1174d36bd916884765ae.tar.zst astro-a07737d545a8fbe6232c1174d36bd916884765ae.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 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/integrations/netlify/test/functions/cookies.test.js b/packages/integrations/netlify/test/functions/cookies.test.js index 54f776499..ea8df7980 100644 --- a/packages/integrations/netlify/test/functions/cookies.test.js +++ b/packages/integrations/netlify/test/functions/cookies.test.js @@ -1,5 +1,5 @@ +import { loadFixture } from '@astrojs/test-utils'; import { expect } from 'chai'; -import { loadFixture } from "@astrojs/test-utils" describe('Cookies', () => { let fixture; @@ -15,9 +15,12 @@ describe('Cookies', () => { import.meta.url ); const { default: handler } = await import(entryURL); - const resp = await handler(new Request('http://example.com/login', { method: "POST", body: '{}' }), {}) + const resp = await handler( + new Request('http://example.com/login', { method: 'POST', body: '{}' }), + {} + ); expect(resp.status).to.equal(301); - expect(resp.headers.get("location")).to.equal('/'); + expect(resp.headers.get('location')).to.equal('/'); expect(resp.headers.getSetCookie()).to.eql(['foo=foo; HttpOnly', 'bar=bar; HttpOnly']); }); }); |