Skip to content

Commit e83079d

Browse files
committed
Add additional test for self-closing-comp
1 parent 226be21 commit e83079d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/lib/rules/self-closing-comp.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ ruleTester.run('self-closing-comp', rule, {
4444
}, {
4545
code: 'var HelloJohn = <div>&nbsp;</div>;',
4646
parserOptions: parserOptions
47+
}, {
48+
code: 'var HelloJohn = <div>{\' \'}</div>;',
49+
parserOptions: parserOptions
4750
}, {
4851
code: 'var HelloJohn = <Hello name="John">&nbsp;</Hello>;',
4952
parserOptions: parserOptions

0 commit comments

Comments
 (0)