mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix: delete comma (#39356)
This commit is contained in:
parent
db4ee53ffa
commit
485cc8a366
@ -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…
Reference in New Issue
Block a user