Skip to content

Commit

Permalink
Improve a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rafbgarcia committed Dec 13, 2019
1 parent eca2af6 commit af69522
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/lib/rules/jsx-curly-brace-presence.js
Expand Up @@ -712,27 +712,32 @@ ruleTester.run('jsx-curly-brace-presence', rule, {
code: `
<App>
foo bar
foo bar foo
<div>foo bar foo</div>
<span>
foo bar <i>foo bar</i>
<strong>foo bar</strong>
<strong>
foo bar
</strong>
</span>
</App>
`,
output: `
<App>
{"foo bar"}
{"foo bar foo"}
<div>{"foo bar foo"}</div>
<span>
{"foo bar "}<i>{"foo bar"}</i>
<strong>{"foo bar"}</strong>
<strong>
{"foo bar"}
</strong>
</span>
</App>
`,
errors: [
{message: missingCurlyMessage},
{message: missingCurlyMessage},
{message: missingCurlyMessage},
{message: missingCurlyMessage},
{message: missingCurlyMessage}
],
options: [{children: 'always'}]
Expand Down

0 comments on commit af69522

Please sign in to comment.