From 6d0b0597bd883ccf46839d719d9d27ca0f2f1378 Mon Sep 17 00:00:00 2001 From: matthewp Date: Tue, 12 Apr 2022 20:50:59 +0000 Subject: [PATCH] [ci] format --- packages/integrations/netlify/src/netlify-functions.ts | 6 +++--- packages/integrations/netlify/test/cookies.test.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/integrations/netlify/src/netlify-functions.ts b/packages/integrations/netlify/src/netlify-functions.ts index bdfb78b8e..c0881bb05 100644 --- a/packages/integrations/netlify/src/netlify-functions.ts +++ b/packages/integrations/netlify/src/netlify-functions.ts @@ -56,10 +56,10 @@ export const createExports = (manifest: SSRManifest, args: Args) => { }; const rawPacked = (response.headers as HeadersWithRaw).raw(); - if('set-cookie' in rawPacked) { + if ('set-cookie' in rawPacked) { fnResponse.multiValueHeaders = { - 'set-cookie': rawPacked['set-cookie'] - } + 'set-cookie': rawPacked['set-cookie'], + }; } } diff --git a/packages/integrations/netlify/test/cookies.test.js b/packages/integrations/netlify/test/cookies.test.js index a8b304f56..0fdc126e8 100644 --- a/packages/integrations/netlify/test/cookies.test.js +++ b/packages/integrations/netlify/test/cookies.test.js @@ -39,12 +39,12 @@ describe('Cookies', () => { headers: {}, rawUrl: 'http://example.com/login', body: '{}', - isBase64Encoded: false + isBase64Encoded: false, }); expect(resp.statusCode).to.equal(301); expect(resp.headers.location).to.equal('/'); expect(resp.multiValueHeaders).to.be.deep.equal({ - 'set-cookie': [ 'foo=foo; HttpOnly', 'bar=bar; HttpOnly' ] + 'set-cookie': ['foo=foo; HttpOnly', 'bar=bar; HttpOnly'], }); }); });