Skip to content

Commit

Permalink
Update display-name tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickcr committed Dec 29, 2014
1 parent 4f6f68c commit 5214f31
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/lib/rules/display-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ eslintTester.addRuleTest('lib/rules/display-name', {
ecmascript: 6,
jsx: true
}
}, {
code: '\
var createClass = function() {};\
var Hello = createClass({\
render: function() {\
return <div>Hello {this.props.name}</div>;\
}\
});',
settings: {
ecmascript: 6,
jsx: true
}
}
],

Expand Down

0 comments on commit 5214f31

Please sign in to comment.