summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matt Kane <ascorbic@users.noreply.github.com> 2025-03-20 11:43:53 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2025-03-20 11:43:53 +0000
commitbaa6265095ba375404382e9aeecf327dd186caf0 (patch)
tree07444e94973b89a571e68ffad7821dd55c3ad514
parentecadb6b02e942feccf584547fe9c14d3d1e21ba6 (diff)
downloadastro-baa6265095ba375404382e9aeecf327dd186caf0.tar.gz
astro-baa6265095ba375404382e9aeecf327dd186caf0.tar.zst
astro-baa6265095ba375404382e9aeecf327dd186caf0.zip
[ci] format
Diffstat (limited to '')
-rw-r--r--packages/astro/e2e/client-only.test.js1
-rw-r--r--packages/integrations/svelte/client.svelte.js2
2 files changed, 1 insertions, 2 deletions
diff --git a/packages/astro/e2e/client-only.test.js b/packages/astro/e2e/client-only.test.js
index fc4316e8d..ec378eb89 100644
--- a/packages/astro/e2e/client-only.test.js
+++ b/packages/astro/e2e/client-only.test.js
@@ -41,7 +41,6 @@ test.describe('Client only', () => {
const counter = await page.locator('#preact-counter');
await expect(counter, 'component is visible').toBeVisible();
-
const fallback = await page.locator('[data-fallback=preact]');
await expect(fallback, 'fallback content is hidden').not.toBeVisible();
diff --git a/packages/integrations/svelte/client.svelte.js b/packages/integrations/svelte/client.svelte.js
index 85a2cd890..3bc9369f8 100644
--- a/packages/integrations/svelte/client.svelte.js
+++ b/packages/integrations/svelte/client.svelte.js
@@ -61,7 +61,7 @@ export default (element) => {
function createComponent(Component, target, props, shouldHydrate) {
let propsState = $state(props);
const bootstrap = shouldHydrate ? hydrate : mount;
- if(!shouldHydrate) {
+ if (!shouldHydrate) {
target.innerHTML = '';
}
const component = bootstrap(Component, { target, props: propsState });