Skip to content

Commit 657e77e

Browse files
committed
[jsx-wrap-multilines] Better tests for attributes
1 parent 21d9a20 commit 657e77e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

tests/lib/rules/jsx-wrap-multilines.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,23 @@ const LOGICAL_NO_PAREN = `
139139
const ATTR_SINGLE_LINE = '<div attr={<p>Hello</p>}></div>';
140140

141141
const ATTR_PAREN = `
142-
<div attr={(<div>
142+
<div attr={
143+
(<div>
143144
<p>Hello</p>
144-
</div>)}>
145+
</div>)
146+
}>
145147
<p>Hello</p>
146-
</div>;
148+
</div>
147149
`;
148150

149151
const ATTR_NO_PAREN = `
150-
<div attr={<div>
152+
<div attr={
153+
<div>
151154
<p>Hello</p>
152-
</div>}>
155+
</div>
156+
}>
153157
<p>Hello</p>
154-
</div>;
158+
</div>
155159
`;
156160

157161
// ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)