Browse Source

fix: delete comma (#39356)

pull/39380/head
lijianan 2 years ago
committed by GitHub
parent
commit
485cc8a366
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      tests/shared/imageTest.tsx

9
tests/shared/imageTest.tsx

@ -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(

Loading…
Cancel
Save