diff --git a/tests/lib/rules/jsx-indent-props.js b/tests/lib/rules/jsx-indent-props.js index 0cd1de59ba..5e479bc7ee 100644 --- a/tests/lib/rules/jsx-indent-props.js +++ b/tests/lib/rules/jsx-indent-props.js @@ -228,6 +228,27 @@ 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: [ + '{this.props.test', + ' ? ', + ' : null}' + ].join('\n'), + output: [ + '{this.props.test', + ' ? ', + ' : null}' + options: [2], + errors: [ + {message: 'Expected indentation of 6 space characters but found 4.'}, + {message: 'Expected indentation of 6 space characters but found 4.'} + ] }, { code: [ '