fix: delete comma (#39356)

This commit is contained in:
lijianan 2022-12-07 17:13:39 +08:00 committed by GitHub
parent db4ee53ffa
commit 485cc8a366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,11 +35,14 @@ export default function imageTest(component: React.ReactElement) {
await page.addStyleTag({ path: `${process.cwd()}/dist/reset.css` });
const cache = createCache();
const html = ReactDOMServer.renderToString(
const element = (
<App>
<StyleProvider cache={cache}>{component}</StyleProvider>,
</App>,
<StyleProvider cache={cache}>{component}</StyleProvider>
</App>
);
const html = ReactDOMServer.renderToString(element);
const styleStr = extractStyle(cache);
await page.evaluate(