Skip to content

Commit 5f61bc4

Browse files
committed
test(jsx-curly-spacing): test against fixed in the past bug
Fixes #998
1 parent cd0ca8d commit 5f61bc4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,5 +2281,14 @@ ruleTester.run('jsx-curly-spacing', rule, {
22812281
}, {
22822282
message: 'There should be no space before \'}\''
22832283
}]
2284+
}, {
2285+
code: [
2286+
'<div onLayout={() => { /* dummy callback to fix android bug with component measuring */ }} />'
2287+
].join('\n'),
2288+
output: [
2289+
'<div onLayout={() => { /* dummy callback to fix android bug with component measuring */ }} />'
2290+
].join('\n'),
2291+
options: ['never', {allowMultiline: true}],
2292+
errors: []
22842293
}]
22852294
});

0 commit comments

Comments
 (0)