0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
Arsh 2024-03-07 16:26:03 +00:00 committed by astrobot-houston
parent 33583e8b31
commit e7eb83252e
2 changed files with 2 additions and 5 deletions

View file

@ -37,12 +37,11 @@ test.describe('Svelte components lifecycle', () => {
});
});
test.describe('Slotting content into svelte components', () => {
test('should stay after hydration', async ({ page, astro }) => {
await page.goto(astro.resolveUrl('/with-slots'));
const hydratableElement = page.locator('#hydratable');
await waitForHydrate(page, hydratableElement);
await expect(hydratableElement).toHaveText("Slot goes here:poo");
await expect(hydratableElement).toHaveText('Slot goes here:poo');
});
});

View file

@ -310,9 +310,7 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
destination.write(html);
} else if (html && html.length > 0) {
destination.write(
markHTMLString(
removeStaticAstroSlot(html, renderer?.ssr?.supportsAstroStaticSlot)
)
markHTMLString(removeStaticAstroSlot(html, renderer?.ssr?.supportsAstroStaticSlot))
);
}
},