Skip to content

Commit 5e144a1

Browse files
committed
Remove indentation arg from test cases
Revert back to 3 cases as per parent repo
1 parent 2507f37 commit 5e144a1

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed

tests/lib/rules/jsx-first-prop-new-line.js

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ ruleTester.run('jsx-first-prop-new-line', rule, {
155155
code: '<Foo prop="one" />',
156156
output: [
157157
'<Foo',
158-
' prop="one" />'
158+
'prop="one" />'
159159
].join('\n'),
160160
options: ['always'],
161161
errors: [{message: 'Property should be placed on a new line'}],
@@ -169,46 +169,14 @@ ruleTester.run('jsx-first-prop-new-line', rule, {
169169
].join('\n'),
170170
output: [
171171
'<Foo',
172-
' propOne="one"',
172+
'propOne="one"',
173173
' propTwo="two"',
174174
'/>'
175175
].join('\n'),
176176
options: ['always'],
177177
errors: [{message: 'Property should be placed on a new line'}],
178178
parser: parserOptions
179179
},
180-
{
181-
code: [
182-
' <Foo propOne="one"',
183-
' propTwo="two"',
184-
' />'
185-
].join('\n'),
186-
output: [
187-
' <Foo',
188-
' propOne="one"',
189-
' propTwo="two"',
190-
' />'
191-
].join('\n'),
192-
options: ['always', 4],
193-
errors: [{message: 'Property should be placed on a new line'}],
194-
parser: parserOptions
195-
},
196-
{
197-
code: [
198-
'\t<Foo propOne="one"',
199-
'\t\tpropTwo="two"',
200-
'\t/>'
201-
].join('\n'),
202-
output: [
203-
'\t<Foo',
204-
'\t\tpropOne="one"',
205-
'\t\tpropTwo="two"',
206-
'\t/>'
207-
].join('\n'),
208-
options: ['always', 'tab'],
209-
errors: [{message: 'Property should be placed on a new line'}],
210-
parser: parserOptions
211-
},
212180
{
213181
code: [
214182
'<Foo',

0 commit comments

Comments
 (0)