Skip to content

Commit 4782d78

Browse files
committed
Add test
1 parent 7f35404 commit 4782d78

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tests/syntax_tests/data/printer/comments/expected/jsx.res.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ module Cite = {
6565
React.string("Hello, World!")}
6666
</div>
6767

68+
<div>
69+
// Outside comment
70+
{
71+
// But this one is inside
72+
let x = 1
73+
let y = 2
74+
}
75+
</div>
76+
6877
let x =
6978
<>
7079
// before a

tests/syntax_tests/data/printer/comments/jsx.res

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ value=""
6767
React.string("Hello, World!")}
6868
</div>
6969

70+
<div>
71+
// Outside comment
72+
{// But this one is inside
73+
let x = 1
74+
let y = 2
75+
}
76+
</div>
77+
7078
let x = <>
7179
// before a
7280
{a} // after a

0 commit comments

Comments
 (0)