Skip to content

Commit

Permalink
Remove indentation arg from test cases
Browse files Browse the repository at this point in the history
Revert back to 3 cases as per parent repo
  • Loading branch information
snowypowers committed Nov 2, 2016
1 parent 2507f37 commit 5e144a1
Showing 1 changed file with 2 additions and 34 deletions.
36 changes: 2 additions & 34 deletions tests/lib/rules/jsx-first-prop-new-line.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ ruleTester.run('jsx-first-prop-new-line', rule, {
code: '<Foo prop="one" />',
output: [
'<Foo',
' prop="one" />'
'prop="one" />'
].join('\n'),
options: ['always'],
errors: [{message: 'Property should be placed on a new line'}],
Expand All @@ -169,46 +169,14 @@ ruleTester.run('jsx-first-prop-new-line', rule, {
].join('\n'),
output: [
'<Foo',
' propOne="one"',
'propOne="one"',
' propTwo="two"',
'/>'
].join('\n'),
options: ['always'],
errors: [{message: 'Property should be placed on a new line'}],
parser: parserOptions
},
{
code: [
' <Foo propOne="one"',
' propTwo="two"',
' />'
].join('\n'),
output: [
' <Foo',
' propOne="one"',
' propTwo="two"',
' />'
].join('\n'),
options: ['always', 4],
errors: [{message: 'Property should be placed on a new line'}],
parser: parserOptions
},
{
code: [
'\t<Foo propOne="one"',
'\t\tpropTwo="two"',
'\t/>'
].join('\n'),
output: [
'\t<Foo',
'\t\tpropOne="one"',
'\t\tpropTwo="two"',
'\t/>'
].join('\n'),
options: ['always', 'tab'],
errors: [{message: 'Property should be placed on a new line'}],
parser: parserOptions
},
{
code: [
'<Foo',
Expand Down

0 comments on commit 5e144a1

Please sign in to comment.