fix optimisation.react.constantElements test fixture names
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
var Foo = require("Foo");
|
||||
|
||||
function render() {
|
||||
return <Foo />;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
var Foo = require("Foo");
|
||||
|
||||
var _ref = <Foo />;
|
||||
|
||||
function render() {
|
||||
return _ref;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
function render(text) {
|
||||
return function () {
|
||||
return <foo>{text}</foo>;
|
||||
};
|
||||
}
|
||||
|
||||
var Foo2 = require("Foo");
|
||||
|
||||
function createComponent(text) {
|
||||
return function render() {
|
||||
return <Foo2>{text}</Foo2>;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
function render(text) {
|
||||
var _ref = <foo>{text}</foo>;
|
||||
|
||||
return function () {
|
||||
return _ref;
|
||||
};
|
||||
}
|
||||
|
||||
var Foo2 = require("Foo");
|
||||
|
||||
function createComponent(text) {
|
||||
var _ref = <Foo2>{text}</Foo2>;
|
||||
|
||||
return function render() {
|
||||
return _ref;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
function render() {
|
||||
return <foo />;
|
||||
}
|
||||
|
||||
function render() {
|
||||
return <div className="foo"><input type="checkbox" checked={true} /></div>;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
var _ref = <foo />;
|
||||
|
||||
function render() {
|
||||
return _ref;
|
||||
}
|
||||
|
||||
var _ref = <div className="foo"><input type="checkbox" checked={true} /></div>;
|
||||
|
||||
function render() {
|
||||
return _ref;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
function render() {
|
||||
var text = getText();
|
||||
return function () {
|
||||
return <foo>{text}</foo>;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
function render() {
|
||||
var text = getText();
|
||||
|
||||
var _ref = <foo>{text}</foo>;
|
||||
|
||||
return function () {
|
||||
return _ref;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"noCheckAst": true,
|
||||
"optional": ["optimisation.react.constantElements"],
|
||||
"blacklist": ["react"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
function render() {
|
||||
return <foo ref="foobar" />;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
function render() {
|
||||
return <foo ref="foobar" />;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
function render() {
|
||||
return <foo {...foobar} />;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
function render() {
|
||||
return <foo {...foobar} />;
|
||||
}
|
||||
Reference in New Issue
Block a user