Skip to content

Commit

Permalink
Add failing tests for jsx-no-literals with literal as BinaryExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
jaaberg committed Dec 17, 2017
1 parent a908eb3 commit 4cf6752
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/lib/rules/jsx-no-literals.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ ruleTester.run('jsx-no-literals', rule, {
`,
options: [{noStrings: true}],
errors: [{message: 'Strings not allowed in JSX files'}]
}, {
code: `
<Foo bar="test">
{'Test' + name}
</Foo>
`,
options: [{noStrings: true}],
errors: [{message: 'Strings not allowed in JSX files'}]
}, {
code: `
<Foo bar="test">
Expand Down

0 comments on commit 4cf6752

Please sign in to comment.