Skip to content

Commit

Permalink
[Tests] jsx-newline: add passing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 21, 2022
1 parent f4915ef commit 7b267d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/lib/rules/jsx-newline.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ new RuleTester({ parserOptions }).run('jsx-newline', rule, {
options: [{ prevent: true }],
features: ['fragment'],
},
{
code: `
{/* fake-eslint-disable-next-line react/forbid-component-props */}
<Button popoverOpen='#settings-popover' style={{ width: 'fit-content' }}>
<Icon f7='gear' />
</Button>
`,
},
]),
invalid: parsers.all([
{
Expand Down

0 comments on commit 7b267d3

Please sign in to comment.