Skip to content

Commit

Permalink
Add multiline test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ Skillingstad committed Jan 12, 2018
1 parent f103712 commit 2043520
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/lib/rules/jsx-tag-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ ruleTester.run('jsx-tag-spacing', rule, {
'</App>'
].join('\n'),
options: beforeClosingOptions('never')
}, {
code: [
'<App',
' foo="bar"',
'>',
'</App>'
].join('\n'),
options: beforeClosingOptions('never')
}, {
code: '<App ></App >',
options: beforeClosingOptions('always')
Expand All @@ -176,6 +184,14 @@ ruleTester.run('jsx-tag-spacing', rule, {
'</App >'
].join('\n'),
options: beforeClosingOptions('always')
}, {
code: [
'<App',
' foo="bar"',
'>',
'</App >'
].join('\n'),
options: beforeClosingOptions('always')
}, {
code: '<App/>',
options: [{
Expand Down

0 comments on commit 2043520

Please sign in to comment.