From aeff5ea7193ffd4b4b733917070116ba6a55c7db Mon Sep 17 00:00:00 2001 From: Filipp Riabchun Date: Sun, 11 Oct 2020 08:50:43 +0200 Subject: [PATCH] [Tests] Add passing test for js-indent props Fixed by #2826. --- tests/lib/rules/jsx-indent-props.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/lib/rules/jsx-indent-props.js b/tests/lib/rules/jsx-indent-props.js index 67e4b1223e..288b38ddad 100644 --- a/tests/lib/rules/jsx-indent-props.js +++ b/tests/lib/rules/jsx-indent-props.js @@ -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', + ' ? ', + ' : (', + ' ', + ' )' + ].join('\n'), + output: [ + 'const test = true', + ' ? ', + ' : (', + ' ', + ' )' + ].join('\n'), + options: [2], + errors: [ + {message: 'Expected indentation of 6 space characters but found 8.'} + ] }, { code: [ '{test.isLoading',