Skip to content

Commit 46fc48c

Browse files
committed
Add test case for jsx-indent
Resolves jsx-eslint#1852
1 parent 1a28f3f commit 46fc48c

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)