Skip to content

Commit

Permalink
test(runtime): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
uhyo committed Nov 3, 2020
1 parent 28607f2 commit 0336422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime/src/__tests__/__snapshots__/ssr.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

exports[`SSR input 1`] = `"<wc-test-foo><input class=\\"test-hello2\\"/></wc-test-foo>"`;
exports[`SSR input 2`] = `"<style data-castella-styled=\\"test-hello2\\">.test-hello2 {color: red}</style><script>var __REACT_WC__={c:()=&gt;class E extends HTMLElement{constructor(){super();this.attachShadow({mode:&quot;open&quot;}).appendChild(E.template.cloneNode(true))}refresh() {let c,s=this.shadowRoot;if(s){while(c=s.firstChild)s.removeChild(c);s.appendChild(E.template.cloneNode(true))}}}};customElements.define(&quot;wc-test-foo&quot;,(E=&gt;(E.template=&quot;\\\\n &lt;style&gt;\\\\n div {\\\\n font-size: 100px;\\\\n }\\\\n &lt;/style&gt;\\\\n &lt;div&gt;&lt;slot&gt;&lt;/slot&gt;&lt;/div&gt;\\\\n &quot;,E))(__REACT_WC__.c()));</script>"`;
exports[`SSR input 2`] = `"<style data-castella-styled=\\"test-hello2\\">.test-hello2 {color: red}</style><script>var __REACT_WC__={c:()=>class E extends HTMLElement{constructor(){super();this.attachShadow({mode:\\"open\\"}).appendChild(E.template.cloneNode(true))}refresh(){let c,s=this.shadowRoot;if(s){while(c=s.firstChild)s.removeChild(c);s.appendChild(E.template.cloneNode(true))}}},p:(t,d)=>{return d=document.createElement(\\"div\\"),d.insertAdjacentHTML(\\"afterbegin\\",t),t=document.createDocumentFragment(),t.appendChild(...d.childNodes),t}};customElements.define(\\"wc-test-foo\\",(E=>(E.template=__REACT_WC__.p(\\"\\\\n <style>\\\\n div {\\\\n font-size: 100px;\\\\n }\\\\n </style>\\\\n <div><slot></slot></div>\\\\n \\"),E))(__REACT_WC__.c()));</script>"`;

0 comments on commit 0336422

Please sign in to comment.