Skip to content

Commit e161977

Browse files
committed
Fix eslint 4 unit tests
1 parent fd9e59f commit e161977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,14 +1160,14 @@ ruleTester.run('jsx-no-literals', rule, {
11601160
</div>
11611161
`,
11621162
options: [{ elementOverrides: { 'React.Fragment': { allowElement: true } } }],
1163-
errors: [{ messageId: 'literalNotInJSXExpression' }],
1163+
errors: [{ messageId: 'literalNotInJSXExpression', data: { text: 'foo' } }],
11641164
},
11651165
{
11661166
code: `
11671167
<div>foo</div>
11681168
`,
11691169
options: [{ elementOverrides: { div: { allowElement: true } } }],
1170-
errors: [{ messageId: 'literalNotInJSXExpression' }],
1170+
errors: [{ messageId: 'literalNotInJSXExpression', data: { text: 'foo' } }],
11711171
},
11721172
]),
11731173
});

0 commit comments

Comments
 (0)