Expecting transform not to throw. Removed meaningless comment.

This commit is contained in:
Jim
2015-02-02 12:19:47 -08:00
parent 387adae3de
commit b207b8698c
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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);