diff --git a/src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js b/src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js index a489864e2b0f..2bf5da415419 100644 --- a/src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js +++ b/src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js @@ -126,7 +126,7 @@ describe('ReactCSSTransitionGroup', function() { expect(a.getDOMNode().childNodes[1].id).toBe('two'); }); - it('should work with no children', function () { + it('should work with no children', function() { React.renderComponent( , @@ -134,7 +134,7 @@ describe('ReactCSSTransitionGroup', function() { ); }); - it('should work with a null child', function () { + it('should work with a null child', function() { React.renderComponent( {[null]} diff --git a/src/addons/transitions/__tests__/ReactTransitionChildMapping-test.js b/src/addons/transitions/__tests__/ReactTransitionChildMapping-test.js index c206d435e0e7..4ca30010127c 100644 --- a/src/addons/transitions/__tests__/ReactTransitionChildMapping-test.js +++ b/src/addons/transitions/__tests__/ReactTransitionChildMapping-test.js @@ -117,7 +117,7 @@ describe('ReactTransitionChildMapping', function() { }); }); - it('should support mergeChildMappings with undefined input', function () { + it('should support mergeChildMappings with undefined input', function() { var prev = { one: true, two: true diff --git a/src/browser/eventPlugins/AnalyticsEventPluginFactory.js b/src/browser/eventPlugins/AnalyticsEventPluginFactory.js index 43bc35d8b473..571fb21aad9b 100644 --- a/src/browser/eventPlugins/AnalyticsEventPluginFactory.js +++ b/src/browser/eventPlugins/AnalyticsEventPluginFactory.js @@ -155,7 +155,7 @@ function extractEvents( var analyticsIDAttribute = topLevelTarget.attributes[ANALYTICS_ID]; var analyticsEventsAttribute = topLevelTarget.attributes[ANALYTICS_EVENTS]; - if(!analyticsIDAttribute || !analyticsEventsAttribute) { + if (!analyticsIDAttribute || !analyticsEventsAttribute) { return null; } diff --git a/src/utils/__tests__/LegacyImmutableObject-test.js b/src/utils/__tests__/LegacyImmutableObject-test.js index 9f5651e4c734..78275c905236 100644 --- a/src/utils/__tests__/LegacyImmutableObject-test.js +++ b/src/utils/__tests__/LegacyImmutableObject-test.js @@ -42,7 +42,7 @@ describe('LegacyImmutableObject', function() { toBeSeriallyEqualTo: function(expected) { var actual = this.actual; var notText = this.isNot ? " not" : ""; - this.message = function () { + this.message = function() { return "Expected " + JSON.stringify(actual) + notText + " to be serially equal to " + JSON.stringify(expected); }; diff --git a/src/utils/__tests__/ReactChildren-test.js b/src/utils/__tests__/ReactChildren-test.js index 3fb2cb2fd440..4cfd192ed699 100644 --- a/src/utils/__tests__/ReactChildren-test.js +++ b/src/utils/__tests__/ReactChildren-test.js @@ -30,7 +30,7 @@ describe('ReactChildren', function() { it('should support identity for simple', function() { - var callback = jasmine.createSpy().andCallFake(function (kid, index) { + var callback = jasmine.createSpy().andCallFake(function(kid, index) { return kid; }); @@ -49,7 +49,7 @@ describe('ReactChildren', function() { }); it('should treat single arrayless child as being in array', function() { - var callback = jasmine.createSpy().andCallFake(function (kid, index) { + var callback = jasmine.createSpy().andCallFake(function(kid, index) { return kid; }); @@ -64,7 +64,7 @@ describe('ReactChildren', function() { }); it('should treat single child in array as expected', function() { - var callback = jasmine.createSpy().andCallFake(function (kid, index) { + var callback = jasmine.createSpy().andCallFake(function(kid, index) { return kid; }); @@ -79,7 +79,7 @@ describe('ReactChildren', function() { }); it('should pass key to returned component', function() { - var mapFn = function (kid, index) { + var mapFn = function(kid, index) { return
{kid}
; }; @@ -97,7 +97,7 @@ describe('ReactChildren', function() { it('should invoke callback with the right context', function() { var lastContext; - var callback = function (kid, index) { + var callback = function(kid, index) { lastContext = this; return this; }; @@ -130,7 +130,7 @@ describe('ReactChildren', function() { var threeMapped = ; // Map from null to something. var fourMapped =
; - var callback = jasmine.createSpy().andCallFake(function (kid, index) { + var callback = jasmine.createSpy().andCallFake(function(kid, index) { return index === 0 ? zeroMapped : index === 1 ? oneMapped : index === 2 ? twoMapped : @@ -202,7 +202,7 @@ describe('ReactChildren', function() { var fourMapped =
; var fiveMapped =
; - var callback = jasmine.createSpy().andCallFake(function (kid, index) { + var callback = jasmine.createSpy().andCallFake(function(kid, index) { return index === 0 ? zeroMapped : index === 1 ? oneMapped : index === 2 ? twoMapped : diff --git a/src/utils/__tests__/traverseAllChildren-test.js b/src/utils/__tests__/traverseAllChildren-test.js index 5766aa90efca..1868cf3f5ddb 100644 --- a/src/utils/__tests__/traverseAllChildren-test.js +++ b/src/utils/__tests__/traverseAllChildren-test.js @@ -31,7 +31,7 @@ describe('traverseAllChildren', function() { it('should support identity for simple', function() { var traverseContext = []; var traverseFn = - jasmine.createSpy().andCallFake(function (context, kid, key, index) { + jasmine.createSpy().andCallFake(function(context, kid, key, index) { context.push(true); }); @@ -52,7 +52,7 @@ describe('traverseAllChildren', function() { it('should treat single arrayless child as being in array', function() { var traverseContext = []; var traverseFn = - jasmine.createSpy().andCallFake(function (context, kid, key, index) { + jasmine.createSpy().andCallFake(function(context, kid, key, index) { context.push(true); }); @@ -71,7 +71,7 @@ describe('traverseAllChildren', function() { it('should treat single child in array as expected', function() { var traverseContext = []; var traverseFn = - jasmine.createSpy().andCallFake(function (context, kid, key, index) { + jasmine.createSpy().andCallFake(function(context, kid, key, index) { context.push(true); }); @@ -96,7 +96,7 @@ describe('traverseAllChildren', function() { var traverseContext = []; var traverseFn = - jasmine.createSpy().andCallFake(function (context, kid, key, index) { + jasmine.createSpy().andCallFake(function(context, kid, key, index) { context.push(true); }); @@ -151,7 +151,7 @@ describe('traverseAllChildren', function() { var traverseContext = []; var traverseFn = - jasmine.createSpy().andCallFake(function (context, kid, key, index) { + jasmine.createSpy().andCallFake(function(context, kid, key, index) { context.push(true); }); @@ -212,7 +212,7 @@ describe('traverseAllChildren', function() { var oneForceKey =
; var traverseContext = []; var traverseFn = - jasmine.createSpy().andCallFake(function (context, kid, key, index) { + jasmine.createSpy().andCallFake(function(context, kid, key, index) { context.push(true); });