Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogo Franco committed Nov 7, 2016
1 parent dfbe2c1 commit 1289239
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/lib/rules/jsx-tag-spacing.js
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 1289239

Please sign in to comment.