From e75c21225ac06d2a902918597205acef5cb733cc Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Sun, 9 Oct 2016 14:57:11 -0700 Subject: [PATCH] failing test for jsx-indent without parens --- tests/lib/rules/jsx-indent.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/lib/rules/jsx-indent.js b/tests/lib/rules/jsx-indent.js index e487f11d6a..b2fb71de36 100644 --- a/tests/lib/rules/jsx-indent.js +++ b/tests/lib/rules/jsx-indent.js @@ -167,6 +167,26 @@ ruleTester.run('jsx-indent', rule, { ].join('\n'), parserOptions: parserOptions, options: [2] + }, { + code: [ + '{head.title && (', + '

', + ' {head.title}', + '

', + ')}' + ].join('\n'), + parserOptions: parserOptions, + options: [2] + }, { + code: [ + '{head.title &&', + '

', + ' {head.title}', + '

', + '}' + ].join('\n'), + parserOptions: parserOptions, + options: [2] }], invalid: [{