Skip to content

Commit

Permalink
object test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
alanorozco committed Sep 9, 2021
1 parent 663c317 commit bc34049
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/lib/rules/jsx-uses-vars.js
Expand Up @@ -116,6 +116,18 @@ ruleTester.run('no-unused-vars', ruleNoUnusedVars, {
};
foo()
`
}, {
code: `
/* eslint jsx-uses-vars: 1 */
var object;
React.render(<object.Tag />);
`
}, {
code: `
/* eslint jsx-uses-vars: 1 */
var object;
React.render(<object.tag />);
`
}
],
invalid: [
Expand Down

0 comments on commit bc34049

Please sign in to comment.