Skip to content

Commit

Permalink
Merge pull request #1892 from alexzherdev/1852-jsx-indent-test-case
Browse files Browse the repository at this point in the history
Add test case for jsx-indent
  • Loading branch information
ljharb committed Jul 22, 2018
2 parents 1a28f3f + 46fc48c commit 9bd3456
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/lib/rules/jsx-indent.js
Expand Up @@ -416,6 +416,20 @@ ruleTester.run('jsx-indent', rule, {
'}'
].join('\n'),
options: [2]
}, {
code: `
class Test extends React.Component {
render() {
return (
<div>
<div />
<div />
</div>
);
}
}
`,
options: [2]
}],

invalid: [{
Expand Down

0 comments on commit 9bd3456

Please sign in to comment.