Skip to content

Commit

Permalink
test(jsx-curly-spacing): move test to "valid" section
Browse files Browse the repository at this point in the history
  • Loading branch information
ColCh committed Mar 17, 2019
1 parent 5f61bc4 commit 279fce9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/lib/rules/jsx-curly-spacing.js
Expand Up @@ -680,6 +680,9 @@ ruleTester.run('jsx-curly-spacing', rule, {
}, {
code: '<>{bar} {baz}</>;',
parser: 'babel-eslint'
}, {
code: '<div onLayout={() => { /* dummy callback to fix android bug with component measuring */ }} />',
parser: 'babel-eslint'
}],

invalid: [{
Expand Down Expand Up @@ -2281,14 +2284,5 @@ ruleTester.run('jsx-curly-spacing', rule, {
}, {
message: 'There should be no space before \'}\''
}]
}, {
code: [
'<div onLayout={() => { /* dummy callback to fix android bug with component measuring */ }} />'
].join('\n'),
output: [
'<div onLayout={() => { /* dummy callback to fix android bug with component measuring */ }} />'
].join('\n'),
options: ['never', {allowMultiline: true}],
errors: []
}]
});

0 comments on commit 279fce9

Please sign in to comment.