[ci] yarn format

This commit is contained in:
matthewp 2021-07-09 13:01:57 +00:00 committed by GitHub Actions
parent 1e01251454
commit 00cdbc4a46
3 changed files with 3 additions and 8 deletions

View file

@ -185,12 +185,7 @@ export interface AstroComponentMetadata {
componentExport?: { value: string; namespace?: boolean }; componentExport?: { value: string; namespace?: boolean };
} }
type AsyncRendererComponentFn<U> = ( type AsyncRendererComponentFn<U> = (Component: any, props: any, children: string | undefined, metadata?: AstroComponentMetadata) => Promise<U>;
Component: any,
props: any,
children: string | undefined,
metadata?: AstroComponentMetadata
) => Promise<U>;
export interface Renderer { export interface Renderer {
check: AsyncRendererComponentFn<boolean>; check: AsyncRendererComponentFn<boolean>;

View file

@ -51,7 +51,7 @@ React('Includes reactroot on hydrating components', async () => {
const div = $('#research'); const div = $('#research');
assert.equal(div.attr('data-reactroot'), '', 'Has the hydration attr'); assert.equal(div.attr('data-reactroot'), '', 'Has the hydration attr');
assert.equal(div.html(), 'foo bar <!-- -->1'); assert.equal(div.html(), 'foo bar <!-- -->1');
}) });
React('Throws helpful error message on window SSR', async () => { React('Throws helpful error message on window SSR', async () => {
const result = await runtime.load('/window'); const result = await runtime.load('/window');