Skip to content

Commit 01b5948

Browse files
committed
[Tests] jsx-newline: add passing test
Closes jsx-eslint#2926
1 parent 58204f8 commit 01b5948

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/lib/rules/jsx-newline.js

+8
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ new RuleTester({ parserOptions }).run('jsx-newline', rule, {
9797
options: [{ prevent: true }],
9898
features: ['fragment'],
9999
},
100+
{
101+
code: `
102+
{/* fake-eslint-disable-next-line react/forbid-component-props */}
103+
<Button popoverOpen='#settings-popover' style={{ width: 'fit-content' }}>
104+
<Icon f7='gear' />
105+
</Button>
106+
`,
107+
},
100108
]),
101109
invalid: parsers.all([
102110
{

0 commit comments

Comments
 (0)