Skip to content

Commit 1f1593b

Browse files
committed
[fix]sort-comp: add nested component test to multilineexpression
1 parent 30bba42 commit 1f1593b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,17 @@ ruleTester.run('jsx-curly-brace-presence', rule, {
363363
code: `
364364
<MyComponent>
365365
{'foo'}
366-
<div>{'%'}</div>
366+
<div>
367+
{'bar'}
368+
</div>
367369
</MyComponent>
368370
`,
369371
output: `
370372
<MyComponent>
371373
{'foo'}
372-
<div>%</div>
374+
<div>
375+
bar
376+
</div>
373377
</MyComponent>
374378
`,
375379
parser: parsers.BABEL_ESLINT,

0 commit comments

Comments
 (0)