Commit 9ca772bd by kzc

add test for #163 regression

parent 728bf692
......@@ -208,5 +208,20 @@ module.exports = [
output: `
React.createElement( Foo, null, " ", React.createElement( 'h1', null, "Hello ", name, "!" ), " " )`
}
},
{
description: 'fix Object.assign regression in JSXOpeningElement (#163)',
options: {
objectAssign: 'Object.assign'
},
input: `
<Thing two={"This no longer fails"} {...props}></Thing>
`,
output: `
React.createElement( Thing, Object.assign({}, { two: "This no longer fails" }, props))
`
},
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment