Skip to content

Commit e42ba31

Browse files
committed
Added trivial non-member function call expression to appease the code coverage gods.
1 parent 9e670c7 commit e42ba31

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/lib/rules/no-did-mount-set-state.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ eslintTester.addRuleTest('lib/rules/no-did-mount-set-state', {
4444
code: '\
4545
var Hello = React.createClass({\
4646
componentDidMount: function() {\
47+
someNonMemberFunction(arg);\
4748
this.someHandler = this.setState;\
4849
},\
4950
render: function() {\

tests/lib/rules/no-did-update-set-state.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ eslintTester.addRuleTest('lib/rules/no-did-update-set-state', {
4444
code: '\
4545
var Hello = React.createClass({\
4646
componentDidUpdate: function() {\
47+
someNonMemberFunction(arg);\
4748
this.someHandler = this.setState;\
4849
},\
4950
render: function() {\

0 commit comments

Comments
 (0)