diff --git a/test.js b/test.js index 67ebb71..e4aea95 100644 --- a/test.js +++ b/test.js @@ -2622,6 +2622,26 @@ test('roundtrip', async function (t) { equal(source, source) } ) + + await t.test( + 'should roundtrip `JSX attributes containing new lines`', + async function () { + equal( + `\n`, + `\n` + ) + } + ) + + await t.test( + 'should roundtrip `JSX multiline string children`', + async function () { + equal( + `{\`\n0\n 1\n 2\n 3\n 4\n 5\`}}\n/>\n`, + `{\`\n0\n 1\n 2\n 3\n 4\n 5\`}}\n/>\n` + ) + } + ) }) /**