diff --git a/tests/lib/rules/jsx-indent-props.js b/tests/lib/rules/jsx-indent-props.js index cc037fa39b..dc51b2ee32 100644 --- a/tests/lib/rules/jsx-indent-props.js +++ b/tests/lib/rules/jsx-indent-props.js @@ -187,6 +187,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', + ' ? ', + ' : (', + ' ', + ' )' + ].join('\n'), + output: [ + 'const test = true', + ' ? ', + ' : (', + ' ', + ' )' + ].join('\n'), + options: [2], + errors: [ + {message: 'Expected indentation of 6 space characters but found 8.'} + ] }, { code: [ '{test.isLoading',