mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
33583e8b31
commit
e7eb83252e
2 changed files with 2 additions and 5 deletions
|
@ -37,12 +37,11 @@ test.describe('Svelte components lifecycle', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
test.describe('Slotting content into svelte components', () => {
|
test.describe('Slotting content into svelte components', () => {
|
||||||
test('should stay after hydration', async ({ page, astro }) => {
|
test('should stay after hydration', async ({ page, astro }) => {
|
||||||
await page.goto(astro.resolveUrl('/with-slots'));
|
await page.goto(astro.resolveUrl('/with-slots'));
|
||||||
const hydratableElement = page.locator('#hydratable');
|
const hydratableElement = page.locator('#hydratable');
|
||||||
await waitForHydrate(page, hydratableElement);
|
await waitForHydrate(page, hydratableElement);
|
||||||
await expect(hydratableElement).toHaveText("Slot goes here:poo");
|
await expect(hydratableElement).toHaveText('Slot goes here:poo');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -310,9 +310,7 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
|
||||||
destination.write(html);
|
destination.write(html);
|
||||||
} else if (html && html.length > 0) {
|
} else if (html && html.length > 0) {
|
||||||
destination.write(
|
destination.write(
|
||||||
markHTMLString(
|
markHTMLString(removeStaticAstroSlot(html, renderer?.ssr?.supportsAstroStaticSlot))
|
||||||
removeStaticAstroSlot(html, renderer?.ssr?.supportsAstroStaticSlot)
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue