Skip to content

Commit 9c908b2

Browse files
committed
Add test cases
1 parent 4c1f15e commit 9c908b2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/lib/rules/jsx-curly-brace-presence.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,15 @@ ruleTester.run('jsx-curly-brace-presence', rule, {
251251
`,
252252
options: ['never']
253253
},
254+
{
255+
code: `
256+
<App prop={\`
257+
a
258+
b
259+
\`} />
260+
`,
261+
options: ['always']
262+
},
254263
{
255264
code: `
256265
<App>
@@ -261,6 +270,15 @@ ruleTester.run('jsx-curly-brace-presence', rule, {
261270
</App>
262271
`,
263272
options: ['never']
273+
},
274+
{
275+
code: `
276+
<App>{\`
277+
a
278+
b
279+
\`}</App>
280+
`,
281+
options: ['always']
264282
}
265283
],
266284

0 commit comments

Comments
 (0)