Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogo Franco committed Oct 24, 2016
1 parent 7c50b9b commit 3494587
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/lib/rules/jsx-tag-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,38 +212,38 @@ ruleTester.run('jsx-tag-spacing', rule, {
}, {
code: '<App/ >;',
output: '<App/>;',
errors: [{message: 'Whitespace is forbidden between `/` and `>`'}],
errors: [{message: 'Whitespace is forbidden between `/` and `>`; write `/>`'}],
options: closingSlashOptions('never')
}, {
code: [
'<App/',
'>'
].join('\n'),
output: '<App/>',
errors: [{message: 'Whitespace is forbidden between `/` and `>`'}],
errors: [{message: 'Whitespace is forbidden between `/` and `>`; write `/>`'}],
options: closingSlashOptions('never')
}, {
code: '<div className="bar">< /div>;',
output: '<div className="bar"></div>;',
errors: [{message: 'Whitespace is forbidden between `<` and `/`'}],
errors: [{message: 'Whitespace is forbidden between `<` and `/`; write `</`'}],
options: closingSlashOptions('never')
}, {
code: [
'<div className="bar"><',
'/div>;'
].join('\n'),
output: '<div className="bar"></div>;',
errors: [{message: 'Whitespace is forbidden between `<` and `/`'}],
errors: [{message: 'Whitespace is forbidden between `<` and `/`; write `</`'}],
options: closingSlashOptions('never')
}, {
code: '<App prop="foo"></App>',
output: '<App prop="foo">< /App>',
errors: [{message: 'Whitespace is required between `<` and `/`'}],
errors: [{message: 'Whitespace is required between `<` and `/`; write `< /`'}],
options: closingSlashOptions('always')
}, {
code: '<p/>',
output: '<p/ >',
errors: [{message: 'Whitespace is required between `/` and `>`'}],
errors: [{message: 'Whitespace is required between `/` and `>`; write `/ >`'}],
options: closingSlashOptions('always')
}, {
code: '< App/>',
Expand Down

0 comments on commit 3494587

Please sign in to comment.