0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

[ci] format

This commit is contained in:
matthewp 2023-03-31 17:44:00 +00:00 committed by fredkbot
parent d59e511d16
commit 7f8ccbe876
2 changed files with 7 additions and 8 deletions

View file

@ -24,7 +24,6 @@ test.describe('Vue components in MDX files', () => {
});
});
test('test the async vue component in astro', async ({ page, astro }) => {
await page.goto(astro.resolveUrl('/'));

View file

@ -18,7 +18,7 @@ export default (element) =>
// related to https://github.com/withastro/astro/issues/6549
// if the component is async, wrap it in a Suspense component
if (isAsync(Component.setup)) {
content = h(Suspense, null, content)
content = h(Suspense, null, content);
}
if (client === 'only') {
@ -33,6 +33,6 @@ export default (element) =>
};
function isAsync(fn) {
const constructor = fn?.constructor
const constructor = fn?.constructor;
return constructor && constructor.name === 'AsyncFunction';
}