We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0d1a16 commit 1594507Copy full SHA for 1594507
test.js
@@ -2622,6 +2622,26 @@ test('roundtrip', async function (t) {
2622
equal(source, source)
2623
}
2624
)
2625
+
2626
+ await t.test(
2627
+ 'should roundtrip `JSX attributes containing new lines`',
2628
+ async function () {
2629
+ equal(
2630
+ `<a\n text={\`\n0\n 1\n 2\n 3\n 4\n 5\`}\n/>\n`,
2631
+ `<a\n text={\`\n0\n 1\n 2\n 3\n 4\n 5\`}\n/>\n`
2632
+ )
2633
+ }
2634
2635
2636
2637
+ 'should roundtrip `JSX multiline string children`',
2638
2639
2640
+ `<a\n trigger={<b>{\`\n0\n 1\n 2\n 3\n 4\n 5\`}</b>}\n/>\n`,
2641
+ `<a\n trigger={<b>{\`\n0\n 1\n 2\n 3\n 4\n 5\`}</b>}\n/>\n`
2642
2643
2644
2645
})
2646
2647
/**
0 commit comments