From 638982663e4ccdea222f961a5f873a0ffde1b5ed Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Wed, 1 Dec 2021 21:27:46 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/runtime/server/hydration.ts | 4 ++-- packages/astro/test/errors.test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/runtime/server/hydration.ts b/packages/astro/src/runtime/server/hydration.ts index a54bee6e6f..935e543a29 100644 --- a/packages/astro/src/runtime/server/hydration.ts +++ b/packages/astro/src/runtime/server/hydration.ts @@ -75,12 +75,12 @@ export function extractDirectives(inputProps: Record): Ext // throw an error if an invalid hydration directive was provided if (HydrationDirectives.indexOf(extracted.hydration.directive) < 0) { - throw new Error(`Error: invalid hydration directive "${key}". Supported hydration methods: ${HydrationDirectives.map(d => `"client:${d}"`).join(', ')}`) + throw new Error(`Error: invalid hydration directive "${key}". Supported hydration methods: ${HydrationDirectives.map((d) => `"client:${d}"`).join(', ')}`); } // throw an error if the query wasn't provided for client:media if (extracted.hydration.directive === 'media' && typeof extracted.hydration.value !== 'string') { - throw new Error('Error: Media query must be provided for "client:media", similar to client:media="(max-width: 600px)"') + throw new Error('Error: Media query must be provided for "client:media", similar to client:media="(max-width: 600px)"'); } break; diff --git a/packages/astro/test/errors.test.js b/packages/astro/test/errors.test.js index 9c9843e651..43b43df5f8 100644 --- a/packages/astro/test/errors.test.js +++ b/packages/astro/test/errors.test.js @@ -61,7 +61,7 @@ describe('Error display', () => { // error message contains error const body = await res.text(); - + // error message contains error expect(body).to.include('Error: invalid hydration directive'); }); @@ -76,7 +76,7 @@ describe('Error display', () => { // error message contains error const body = await res.text(); - + // error message contains error expect(body).to.include('Error: Media query must be provided'); });