Skip to content

Commit a01b23c

Browse files
committed
add test for new acceptable use
1 parent d069049 commit a01b23c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/lib/rules/jsx-no-literals.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ ruleTester.run('jsx-no-literals', rule, {
117117
`,
118118
parser: 'babel-eslint',
119119
options: ['no-strings']
120+
}, {
121+
code: `
122+
<Foo bar="test">
123+
{translate('my.translate.key')}
124+
</Foo>
125+
`,
126+
parser: 'babel-eslint',
127+
options: ['no-strings']
120128
}
121129
],
122130

0 commit comments

Comments
 (0)