Skip to content

Commit 6eceb6b

Browse files
committed
[Tests] jsx-indent: add passing test case
Closes #1176
1 parent 676fde2 commit 6eceb6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/lib/rules/jsx-indent.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,14 @@ const Component = () => (
11341134
`,
11351135
options: [2],
11361136
},
1137+
{
1138+
code: `
1139+
const Item = ({ id, name, onSelect }) => <div onClick={onSelect}>
1140+
{id}: {name}
1141+
</div>;
1142+
`,
1143+
options: [2],
1144+
},
11371145
]),
11381146

11391147
invalid: parsers.all([

0 commit comments

Comments
 (0)