Skip to content

Commit

Permalink
[Tests] add passing test, fixed in #3070.
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored and ljharb committed Feb 2, 2021
1 parent a9f0b95 commit 783d4cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/lib/rules/jsx-uses-vars.js
Expand Up @@ -215,6 +215,19 @@ ruleTester.run('no-unused-vars', ruleNoUnusedVars, {
React.render(<lowercase />);
`,
errors: [{message: '\'lowercase\' is defined but never used.'}]
}, {
code: `
/* eslint jsx-uses-vars: 1 */
function Greetings(div) {
return <div />;
}
Greetings();
`,
errors: [{
message: '\'div\' is defined but never used.',
line: 3
}],
parser: parsers.BABEL_ESLINT
}
]
});
Expand Down

0 comments on commit 783d4cd

Please sign in to comment.