mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Expecting transform not to throw. Removed meaningless comment.
This commit is contained in:
+1
-1
@@ -338,7 +338,7 @@ describe('react jsx', function() {
|
||||
|
||||
it('should not throw for unknown hyphenated tags', function() {
|
||||
var code = '<x-component />;';
|
||||
transform(code); // Asserting it doesn't throw
|
||||
expect(function(){transform(code);}).not.toThrow();
|
||||
});
|
||||
|
||||
it('calls assign with a new target object for spreads', function() {
|
||||
|
||||
-1
@@ -57,7 +57,6 @@ function visitReactTag(traverse, object, path, state) {
|
||||
// We assume that the React runtime is already in scope
|
||||
utils.append('React.createElement(', state);
|
||||
|
||||
// XJSMemberExpressions are not.
|
||||
if (nameObject.type === Syntax.XJSIdentifier && isTagName(nameObject.name)) {
|
||||
utils.append('"' + nameObject.name + '"', state);
|
||||
utils.move(nameObject.range[1], state);
|
||||
|
||||
Reference in New Issue
Block a user