Skip to content

Commit 98a7100

Browse files
committed
Use JSX in the new tests
1 parent f27e3aa commit 98a7100

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ describe('ReactDOMComponent', function() {
403403
it('should update known hyphenated attributes for SVG tags', function() {
404404
var container = document.createElement('div');
405405

406-
var beforeUpdate = React.createElement('svg', {}, null);
406+
var beforeUpdate = <svg />;
407407
ReactDOM.render(beforeUpdate, container);
408408

409409
var afterUpdate = <svg clip-path="url(#starlet)" />;
@@ -417,7 +417,7 @@ describe('ReactDOMComponent', function() {
417417
it('should update camel case attributes for SVG tags', function() {
418418
var container = document.createElement('div');
419419

420-
var beforeUpdate = React.createElement('svg', {}, null);
420+
var beforeUpdate = <svg />;
421421
ReactDOM.render(beforeUpdate, container);
422422

423423
var afterUpdate = <svg viewBox="0 0 100 100" />;
@@ -432,7 +432,7 @@ describe('ReactDOMComponent', function() {
432432
spyOn(console, 'error');
433433
var container = document.createElement('div');
434434

435-
var beforeUpdate = React.createElement('svg', {}, null);
435+
var beforeUpdate = <svg />;
436436
ReactDOM.render(beforeUpdate, container);
437437

438438
var afterUpdate = <svg clipPath="url(#starlet)" />;
@@ -449,7 +449,7 @@ describe('ReactDOMComponent', function() {
449449
it('should update arbitrary hyphenated attributes for SVG tags', function() {
450450
var container = document.createElement('div');
451451

452-
var beforeUpdate = React.createElement('svg', {}, null);
452+
var beforeUpdate = <svg />;
453453
ReactDOM.render(beforeUpdate, container);
454454

455455
var afterUpdate = <svg the-word="the-bird" />;
@@ -461,7 +461,7 @@ describe('ReactDOMComponent', function() {
461461
it('should update arbitrary camel case attributes for SVG tags', function() {
462462
var container = document.createElement('div');
463463

464-
var beforeUpdate = React.createElement('svg', {}, null);
464+
var beforeUpdate = <svg />;
465465
ReactDOM.render(beforeUpdate, container);
466466

467467
var afterUpdate = <svg theWord="theBird" />;

0 commit comments

Comments
 (0)