diff --git a/packages/astro/test/helpers.js b/packages/astro/test/helpers.js index 33b439242..7a678ef54 100644 --- a/packages/astro/test/helpers.js +++ b/packages/astro/test/helpers.js @@ -86,7 +86,7 @@ export function setupBuild(Suite, fixturePath) { context.build = () => astroBuild(astroConfig, { level: 'error', dest: process.stderr }); context.readFile = async (path) => { const resolved = fileURLToPath(new URL(`${fixturePath}/${astroConfig.dist}${path}`, import.meta.url)); - return readFileSync(resolved, {encoding: 'utf8'}); + return readFileSync(resolved, { encoding: 'utf8' }); }; clearTimeout(timeout); diff --git a/packages/renderers/renderer-lit/client-shim.js b/packages/renderers/renderer-lit/client-shim.js index 5ae6e8181..413d2cbd9 100644 --- a/packages/renderers/renderer-lit/client-shim.js +++ b/packages/renderers/renderer-lit/client-shim.js @@ -3,9 +3,7 @@ async function polyfill() { hydrateShadowRoots(document.body); } -const polyfillCheckEl = new DOMParser() - .parseFromString(`

`, 'text/html', {includeShadowRoots: true}) - .querySelector('p'); +const polyfillCheckEl = new DOMParser().parseFromString(`

`, 'text/html', { includeShadowRoots: true }).querySelector('p'); if (!polyfillCheckEl || !polyfillCheckEl.shadowRoot) { polyfill();