Skip to content

Commit 6b0318b

Browse files
authored
chore(render): update Suspense-testing snapshots (#2558)
1 parent 88205c9 commit 6b0318b

File tree

2 files changed

+2
-92
lines changed

2 files changed

+2
-92
lines changed

packages/render/src/browser/__snapshots__/render-web.spec.tsx.snap

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,6 @@ exports[`render on the browser environment > renders large emails without hydrat
77
exports[`render on the browser environment > throws error of rendering an invalid element instead of writing them into a template tag 1`] = `[Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.]`;
88

99
exports[`render on the browser environment > waits for Suspense boundaries to ending before resolving 1`] = `
10-
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$?--><template id="B:0"></template><!--/$--><div hidden id="S:0"><div><!doctype html>
11-
<html>
12-
<head>
13-
<title>Example Domain</title>
14-
15-
<meta charset="utf-8" />
16-
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
17-
<meta name="viewport" content="width=device-width, initial-scale=1" />
18-
<style type="text/css">
19-
body {
20-
background-color: #f0f0f2;
21-
margin: 0;
22-
padding: 0;
23-
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
24-
25-
}
26-
div {
27-
width: 600px;
28-
margin: 5em auto;
29-
padding: 2em;
30-
background-color: #fdfdff;
31-
border-radius: 0.5em;
32-
box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);
33-
}
34-
a:link, a:visited {
35-
color: #38488f;
36-
text-decoration: none;
37-
}
38-
@media (max-width: 700px) {
39-
div {
40-
margin: 0 auto;
41-
width: auto;
42-
}
43-
}
44-
</style>
45-
</head>
46-
47-
<body>
48-
<div>
49-
<h1>Example Domain</h1>
50-
<p>This domain is for use in illustrative examples in documents. You may use this
51-
domain in literature without prior coordination or asking for permission.</p>
52-
<p><a href="https://www.iana.org/domains/example">More information...</a></p>
53-
</div>
54-
</body>
55-
</html>
10+
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$?--><template id="B:0"></template><!--/$--><div hidden id="S:0"><div><!doctype html><html lang="en"><head><title>Example Domain</title><meta name="viewport" content="width=device-width, initial-scale=1"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.<p><a href="https://iana.org/domains/example">Learn more</a></div></body></html>
5611
</div></div><script>$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("B:0","S:0")</script>"
5712
`;

0 commit comments

Comments
 (0)