Skip to content

Commit 5214f31

Browse files
committed
Update display-name tests
1 parent 4f6f68c commit 5214f31

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/lib/rules/display-name.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ eslintTester.addRuleTest('lib/rules/display-name', {
3131
ecmascript: 6,
3232
jsx: true
3333
}
34+
}, {
35+
code: '\
36+
var createClass = function() {};\
37+
var Hello = createClass({\
38+
render: function() {\
39+
return <div>Hello {this.props.name}</div>;\
40+
}\
41+
});',
42+
settings: {
43+
ecmascript: 6,
44+
jsx: true
45+
}
3446
}
3547
],
3648

0 commit comments

Comments
 (0)