Skip to content

Commit

Permalink
[Tests] no-render-return-value: add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
golopot authored and ljharb committed May 6, 2019
1 parent 935b0b0 commit a7c48dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/lib/rules/no-render-return-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ ruleTester.run('no-render-return-value', rule, {
version: '0.13.0'
}
}
}, {
code: 'var foo = React.render(<div />, root);',
settings: {
react: {
version: '0.0.1'
}
}
}, {
code: 'var foo = render(<div />, root)'
}, {
code: 'var foo = ReactDom.renderder(<div />, root)'
}],

invalid: [{
Expand Down

0 comments on commit a7c48dd

Please sign in to comment.