Skip to content

Commit 279fce9

Browse files
committed
test(jsx-curly-spacing): move test to "valid" section
1 parent 5f61bc4 commit 279fce9

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 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: [{
@@ -2281,14 +2284,5 @@ ruleTester.run('jsx-curly-spacing', rule, {
22812284
}, {
22822285
message: 'There should be no space before \'}\''
22832286
}]
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: []
22932287
}]
22942288
});

0 commit comments

Comments
 (0)