diff options
Diffstat (limited to 'packages/astro')
-rw-r--r-- | packages/astro/src/@types/astro.ts | 7 | ||||
-rw-r--r-- | packages/astro/test/react-component.test.js | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 026603c05..ce2e2bb03 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -185,12 +185,7 @@ export interface AstroComponentMetadata { componentExport?: { value: string; namespace?: boolean }; } -type AsyncRendererComponentFn<U> = ( - Component: any, - props: any, - children: string | undefined, - metadata?: AstroComponentMetadata -) => Promise<U>; +type AsyncRendererComponentFn<U> = (Component: any, props: any, children: string | undefined, metadata?: AstroComponentMetadata) => Promise<U>; export interface Renderer { check: AsyncRendererComponentFn<boolean>; diff --git a/packages/astro/test/react-component.test.js b/packages/astro/test/react-component.test.js index b5e01e638..ac80b3b6d 100644 --- a/packages/astro/test/react-component.test.js +++ b/packages/astro/test/react-component.test.js @@ -51,7 +51,7 @@ React('Includes reactroot on hydrating components', async () => { const div = $('#research'); assert.equal(div.attr('data-reactroot'), '', 'Has the hydration attr'); assert.equal(div.html(), 'foo bar <!-- -->1'); -}) +}); React('Throws helpful error message on window SSR', async () => { const result = await runtime.load('/window'); |