diff options
Diffstat (limited to 'integration/snippets')
-rw-r--r-- | integration/snippets/styledcomponents-output.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/integration/snippets/styledcomponents-output.js b/integration/snippets/styledcomponents-output.js index 898223c3e..16ac1ed6b 100644 --- a/integration/snippets/styledcomponents-output.js +++ b/integration/snippets/styledcomponents-output.js @@ -36,7 +36,7 @@ export function test() { document.body.appendChild(reactEl); ReactDOM.render( <ErrorScreenRoot id="error-el"> - This is an error! Look for the string + The react child should have this text </ErrorScreenRoot>, reactEl ); @@ -49,10 +49,11 @@ export function test() { ); console.assert( document.querySelector("#error-el").textContent === - "This is an error! Look for the string" + "The react child should have this text" ); ReactDOM.unmountComponentAtNode(reactEl); reactEl.remove(); + style.remove(); testDone(import.meta.url); } |