Skip to content

Commit 9834e7a

Browse files
committed
Test case for tabs
1 parent 9182124 commit 9834e7a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,22 @@ ruleTester.run('jsx-first-prop-new-line', rule, {
193193
errors: [{message: 'Property should be placed on a new line'}],
194194
parser: parserOptions
195195
},
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+
},
196212
{
197213
code: [
198214
'<Foo',

0 commit comments

Comments
 (0)