move all plugin tests out of babel-core and into their appropriate folders
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<div children="foo">bar</div>;
|
||||
@@ -0,0 +1,11 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: "div",
|
||||
key: null,
|
||||
ref: null,
|
||||
props: {
|
||||
children: "foo",
|
||||
children: "bar"
|
||||
},
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<Baz foo="bar"></Baz>;
|
||||
@@ -0,0 +1,10 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Baz,
|
||||
key: null,
|
||||
ref: null,
|
||||
props: babelHelpers.defaultProps(Baz.defaultProps, {
|
||||
foo: "bar"
|
||||
}),
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<Baz></Baz>;
|
||||
@@ -0,0 +1,8 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Baz,
|
||||
key: null,
|
||||
ref: null,
|
||||
props: Baz.defaultProps,
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
var TestComponent = React.createClass({
|
||||
render: function () {
|
||||
return <span className={this.props.someProp} />;
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,14 @@
|
||||
var TestComponent = React.createClass({
|
||||
render: function () {
|
||||
return {
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: "span",
|
||||
key: null,
|
||||
ref: null,
|
||||
props: {
|
||||
className: this.props.someProp
|
||||
},
|
||||
_owner: null
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<foo bar="foo"></foo>;
|
||||
@@ -0,0 +1,10 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: "foo",
|
||||
key: null,
|
||||
ref: null,
|
||||
props: {
|
||||
bar: "foo"
|
||||
},
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<foo></foo>;
|
||||
@@ -0,0 +1,8 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: "foo",
|
||||
key: null,
|
||||
ref: null,
|
||||
props: {},
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<Foo key="foo" data-value="bar" />
|
||||
@@ -0,0 +1,10 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Foo,
|
||||
key: "foo",
|
||||
ref: null,
|
||||
props: babelHelpers.defaultProps(Foo.defaultProps, {
|
||||
"data-value": "bar"
|
||||
}),
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1,2 @@
|
||||
<Baz>
|
||||
</Baz>;
|
||||
@@ -0,0 +1,8 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Baz,
|
||||
key: null,
|
||||
ref: null,
|
||||
props: Baz.defaultProps,
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<Foo className="foo">{bar}<Baz key="baz" /></Foo>
|
||||
@@ -0,0 +1,18 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Foo,
|
||||
key: null,
|
||||
ref: null,
|
||||
props: babelHelpers.defaultProps(Foo.defaultProps, {
|
||||
className: "foo",
|
||||
children: [bar, {
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Baz,
|
||||
key: "baz",
|
||||
ref: null,
|
||||
props: Baz.defaultProps,
|
||||
_owner: null
|
||||
}]
|
||||
}),
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<div className="foo">{bar}</div>;
|
||||
@@ -0,0 +1,11 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: "div",
|
||||
key: null,
|
||||
ref: null,
|
||||
props: {
|
||||
className: "foo",
|
||||
children: bar
|
||||
},
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<div className="foo">{bar}<Baz key="baz" /></div>
|
||||
@@ -0,0 +1,18 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: "div",
|
||||
key: null,
|
||||
ref: null,
|
||||
props: {
|
||||
className: "foo",
|
||||
children: [bar, {
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Baz,
|
||||
key: "baz",
|
||||
ref: null,
|
||||
props: Baz.defaultProps,
|
||||
_owner: null
|
||||
}]
|
||||
},
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers-2", "syntax-jsx", "transform-react-inline-elements", "transform-react-jsx"]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<Foo ref="bar" />
|
||||
@@ -0,0 +1 @@
|
||||
React.createElement(Foo, { ref: "bar" });
|
||||
@@ -0,0 +1 @@
|
||||
<Baz foo="bar" />;
|
||||
@@ -0,0 +1,10 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Baz,
|
||||
key: null,
|
||||
ref: null,
|
||||
props: babelHelpers.defaultProps(Baz.defaultProps, {
|
||||
foo: "bar"
|
||||
}),
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<Baz />;
|
||||
@@ -0,0 +1,8 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Baz,
|
||||
key: null,
|
||||
ref: null,
|
||||
props: Baz.defaultProps,
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<foo bar="foo" />;
|
||||
@@ -0,0 +1,10 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: "foo",
|
||||
key: null,
|
||||
ref: null,
|
||||
props: {
|
||||
bar: "foo"
|
||||
},
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<foo />;
|
||||
@@ -0,0 +1,8 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: "foo",
|
||||
key: null,
|
||||
ref: null,
|
||||
props: {},
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<Foo bar />;
|
||||
@@ -0,0 +1,10 @@
|
||||
({
|
||||
$$typeof: babelHelpers.typeofReactElement,
|
||||
type: Foo,
|
||||
key: null,
|
||||
ref: null,
|
||||
props: babelHelpers.defaultProps(Foo.defaultProps, {
|
||||
bar: true
|
||||
}),
|
||||
_owner: null
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<Foo {...bar} />
|
||||
@@ -0,0 +1 @@
|
||||
React.createElement(Foo, bar);
|
||||
Reference in New Issue
Block a user