Skip to content

Commit 8330c4a

Browse files
committed
Add material-ui autogenerated sandbox to tests
1 parent 92fb5f4 commit 8330c4a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/app/integration-tests/tests/sandboxes.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const SANDBOXES = [
2727
'2ppkvzx570', // nested imports
2828
'rl2m3xklyo', // node_modules import
2929
'vanilla',
30+
'n5wy74w8vl', // material-ui generated demo
3031
];
3132

3233
function pageLoaded(page) {

packages/app/src/sandbox/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function getHTMLParts(html: string) {
4949
const headMatch = html.match(headMatcher);
5050
const bodyMatch = html.match(bodyMatcher);
5151
const head = headMatch && headMatch[1] ? headMatch[1] : '';
52-
const body = bodyMatch && bodyMatch[1] ? bodyMatch[1] : '';
52+
const body = bodyMatch && bodyMatch[1] ? bodyMatch[1] : html;
5353

5454
return { body, head };
5555
}

0 commit comments

Comments
 (0)