Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a failing test for js-indent props #2823

Merged
merged 1 commit into from Oct 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions tests/lib/rules/jsx-indent-props.js
Expand Up @@ -204,6 +204,29 @@ ruleTester.run('jsx-indent-props', rule, {
{message: 'Expected indentation of 6 space characters but found 4.'},
{message: 'Expected indentation of 6 space characters but found 4.'}
]
}, {
code: [
'const test = true',
' ? <span attr="value" />',
' : (',
' <span',
' attr="otherValue"',
' />',
' )'
].join('\n'),
output: [
'const test = true',
' ? <span attr="value" />',
' : (',
' <span',
' attr="otherValue"',
' />',
' )'
].join('\n'),
options: [2],
errors: [
{message: 'Expected indentation of 6 space characters but found 8.'}
]
}, {
code: [
'{test.isLoading',
Expand Down