aboutsummaryrefslogtreecommitdiff
path: root/integration/snapshots/styledcomponents-output.hmr.debug.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-30 22:37:46 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-30 22:37:46 -0700
commitd47419f4711c562e4b4b1642406cb29e326201c2 (patch)
tree78fdd39e536d13da5a4f35ff60138a1c2d0a8b33 /integration/snapshots/styledcomponents-output.hmr.debug.js
parent367f9c96740c4c4a9f717eb80b50e40bfc0e88af (diff)
downloadbun-d47419f4711c562e4b4b1642406cb29e326201c2.tar.gz
bun-d47419f4711c562e4b4b1642406cb29e326201c2.tar.zst
bun-d47419f4711c562e4b4b1642406cb29e326201c2.zip
Snapshots
Diffstat (limited to 'integration/snapshots/styledcomponents-output.hmr.debug.js')
-rw-r--r--integration/snapshots/styledcomponents-output.hmr.debug.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/integration/snapshots/styledcomponents-output.hmr.debug.js b/integration/snapshots/styledcomponents-output.hmr.debug.js
index cddc9e5f6..25b291547 100644
--- a/integration/snapshots/styledcomponents-output.hmr.debug.js
+++ b/integration/snapshots/styledcomponents-output.hmr.debug.js
@@ -8,7 +8,7 @@ import {
__HMRModule as HMR
} from "http://localhost:8080/__runtime.js";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var jsx = require(JSX).jsxDEV, fileName = "styledcomponents-output.js";
+var jsx = require(JSX).jsxDEV;
import * as $d4051a2e from "http://localhost:8080/node_modules/styled-components/dist/styled-components.browser.esm.js";
var { default: styled} = require($d4051a2e);
@@ -53,17 +53,15 @@ var hmr = new HMR(1290604342, "styledcomponents-output.js"), exports = hmr.expor
document.body.appendChild(reactEl);
ReactDOM.render(jsx(ErrorScreenRoot, {
id: "error-el",
- children: ["This is an error! Look for the string"]
- }, undefined, true, {
- fileName,
- lineNumber: 805
- }, this), reactEl);
+ children: ["The react child should have this text"]
+ }, undefined, true, undefined, this), reactEl);
const style = document.querySelector("style[data-styled]");
console.assert(style, "style tag should exist");
- console.assert(!style.textContent.includes("晜"), "style tag should not contain invalid unicode codepoints");
- console.assert(document.querySelector("#error-el").textContent === "This is an error! Look for the string");
+ console.assert(style.textContent.split("").every((a) => a.codePointAt(0) < 128), "style tag should not contain invalid unicode codepoints");
+ console.assert(document.querySelector("#error-el").textContent === "The react child should have this text");
ReactDOM.unmountComponentAtNode(reactEl);
reactEl.remove();
+ style.remove();
testDone(import.meta.url);
}
hmr.exportAll({