summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/runtime/server/hydration.ts4
-rw-r--r--packages/astro/test/errors.test.js4
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 a54bee6e6..935e543a2 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<string | number, any>): 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 9c9843e65..43b43df5f 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');
});