diff options
| author | 2021-11-05 01:16:19 -0700 | |
|---|---|---|
| committer | 2021-11-05 01:16:19 -0700 | |
| commit | 0006d28cbb3f2c4b3fe360c8264d202fe1867330 (patch) | |
| tree | 236d6cb3c9f9cffd67075bf67f44c8cda0583300 /integration/snapshots/jsx-spacing.debug.jsx | |
| parent | 42dcc4e21747c8b09b8df503d5e7cea54f15afc6 (diff) | |
| download | bun-0006d28cbb3f2c4b3fe360c8264d202fe1867330.tar.gz bun-0006d28cbb3f2c4b3fe360c8264d202fe1867330.tar.zst bun-0006d28cbb3f2c4b3fe360c8264d202fe1867330.zip | |
:camera: Snapshots
Diffstat (limited to 'integration/snapshots/jsx-spacing.debug.jsx')
| -rw-r--r-- | integration/snapshots/jsx-spacing.debug.jsx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/integration/snapshots/jsx-spacing.debug.jsx b/integration/snapshots/jsx-spacing.debug.jsx new file mode 100644 index 000000000..b15ee0c08 --- /dev/null +++ b/integration/snapshots/jsx-spacing.debug.jsx @@ -0,0 +1,38 @@ +import { +__require as require +} 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; + +import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js"; +var ReactDOM = require($1f6f0e67); +const ReturnDescriptionAsString = ({ description }) => description; + +export function test() { + const _bun = ReactDOM.renderToString(jsx(ReturnDescriptionAsString, { + description: `line1 +line2 trailing space + +line4 no trailing space 'single quote' \\t\\f\\v\\uF000 \`template string\` + +line6 no trailing space +line7 trailing newline that \${terminates} the string literal +` + }, undefined, false, undefined, this)); + const el = document.createElement("textarea"); + el.innerHTML = _bun; + const bun = el.value; + const esbuild = `line1 +line2 trailing space + +line4 no trailing space 'single quote' \\t\\f\\v\\uF000 \`template string\` + +line6 no trailing space +line7 trailing newline that \${terminates} the string literal +`; + console.assert(bun === esbuild, `strings did not match: ${JSON.stringify({ + received: bun, + expected: esbuild + }, null, 2)}`); + testDone(import.meta.url); +} |
