Skip to content

Commit 9bd3456

Browse files
authored
Merge pull request jsx-eslint#1892 from alexzherdev/1852-jsx-indent-test-case
Add test case for jsx-indent
2 parents 1a28f3f + 46fc48c commit 9bd3456

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/lib/rules/jsx-indent.js

+14
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,20 @@ ruleTester.run('jsx-indent', rule, {
416416
'}'
417417
].join('\n'),
418418
options: [2]
419+
}, {
420+
code: `
421+
class Test extends React.Component {
422+
render() {
423+
return (
424+
<div>
425+
<div />
426+
<div />
427+
</div>
428+
);
429+
}
430+
}
431+
`,
432+
options: [2]
419433
}],
420434

421435
invalid: [{

0 commit comments

Comments
 (0)