add createClass displayName to react
This commit is contained in:
6
test/fixtures/syntax/react/display-name-assignment-expression/actual.js
vendored
Normal file
6
test/fixtures/syntax/react/display-name-assignment-expression/actual.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
var Component;
|
||||
Component = React.createClass({
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
7
test/fixtures/syntax/react/display-name-assignment-expression/expected.js
vendored
Normal file
7
test/fixtures/syntax/react/display-name-assignment-expression/expected.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
var Component;
|
||||
Component = React.createClass({
|
||||
displayName: "Component",
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
6
test/fixtures/syntax/react/display-name-if-missing/actual.js
vendored
Normal file
6
test/fixtures/syntax/react/display-name-if-missing/actual.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
var Whateva = React.createClass({
|
||||
displayName: "Whatever",
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
6
test/fixtures/syntax/react/display-name-if-missing/expected.js
vendored
Normal file
6
test/fixtures/syntax/react/display-name-if-missing/expected.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
var Whateva = React.createClass({
|
||||
displayName: "Whatever",
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
7
test/fixtures/syntax/react/display-name-object-declaration/actual.js
vendored
Normal file
7
test/fixtures/syntax/react/display-name-object-declaration/actual.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
exports = {
|
||||
Component: React.createClass({
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
})
|
||||
};
|
||||
8
test/fixtures/syntax/react/display-name-object-declaration/expected.js
vendored
Normal file
8
test/fixtures/syntax/react/display-name-object-declaration/expected.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
exports = {
|
||||
Component: React.createClass({
|
||||
displayName: "Component",
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
})
|
||||
};
|
||||
5
test/fixtures/syntax/react/display-name-property-assignment/actual.js
vendored
Normal file
5
test/fixtures/syntax/react/display-name-property-assignment/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
exports.Component = React.createClass({
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
6
test/fixtures/syntax/react/display-name-property-assignment/expected.js
vendored
Normal file
6
test/fixtures/syntax/react/display-name-property-assignment/expected.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
exports.Component = React.createClass({
|
||||
displayName: "Component",
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
5
test/fixtures/syntax/react/display-name-variable-declaration/actual.js
vendored
Normal file
5
test/fixtures/syntax/react/display-name-variable-declaration/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var Component = React.createClass({
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
6
test/fixtures/syntax/react/display-name-variable-declaration/expected.js
vendored
Normal file
6
test/fixtures/syntax/react/display-name-variable-declaration/expected.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
var Component = React.createClass({
|
||||
displayName: "Component",
|
||||
render: function() {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user