Skip to content

Commit 005070d

Browse files
ColChljharb
authored andcommitted
[Tests] jsx-curly-spacing: add regression test case
Fixes #998
1 parent cd0ca8d commit 005070d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/lib/rules/jsx-curly-spacing.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,9 @@ ruleTester.run('jsx-curly-spacing', rule, {
680680
}, {
681681
code: '<>{bar} {baz}</>;',
682682
parser: 'babel-eslint'
683+
}, {
684+
code: '<div onLayout={() => { /* dummy callback to fix android bug with component measuring */ }} />',
685+
parser: 'babel-eslint'
683686
}],
684687

685688
invalid: [{

0 commit comments

Comments
 (0)