From 6fa63696782f4bf90f1d7674c2f144cc00231c40 Mon Sep 17 00:00:00 2001 From: matthewp Date: Wed, 27 Jul 2022 15:52:44 +0000 Subject: [PATCH] [ci] format --- packages/integrations/cloudflare/test/no-output.test.js | 3 +-- packages/integrations/vercel/src/serverless/adapter.ts | 4 ++-- packages/integrations/vercel/test/no-output.test.js | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/integrations/cloudflare/test/no-output.test.js b/packages/integrations/cloudflare/test/no-output.test.js index c82d45210..af4d9c2b6 100644 --- a/packages/integrations/cloudflare/test/no-output.test.js +++ b/packages/integrations/cloudflare/test/no-output.test.js @@ -15,11 +15,10 @@ describe('Missing output config', () => { let error = undefined; try { await fixture.build(); - } catch(err) { + } catch (err) { error = err; } expect(error).to.not.be.equal(undefined); expect(error.message).to.include(`output: "server"`); }); }); - diff --git a/packages/integrations/vercel/src/serverless/adapter.ts b/packages/integrations/vercel/src/serverless/adapter.ts index 0face02e2..970141cd0 100644 --- a/packages/integrations/vercel/src/serverless/adapter.ts +++ b/packages/integrations/vercel/src/serverless/adapter.ts @@ -29,8 +29,8 @@ export default function vercelEdge(): AstroIntegration { setAdapter(getAdapter()); _config = config; - if(config.output === 'static') { - throw new Error(` + if (config.output === 'static') { + throw new Error(` [@astrojs/vercel] \`output: "server"\` is required to use the serverless adapter. `); diff --git a/packages/integrations/vercel/test/no-output.test.js b/packages/integrations/vercel/test/no-output.test.js index c82d45210..af4d9c2b6 100644 --- a/packages/integrations/vercel/test/no-output.test.js +++ b/packages/integrations/vercel/test/no-output.test.js @@ -15,11 +15,10 @@ describe('Missing output config', () => { let error = undefined; try { await fixture.build(); - } catch(err) { + } catch (err) { error = err; } expect(error).to.not.be.equal(undefined); expect(error.message).to.include(`output: "server"`); }); }); -