Merge pull request #1403 from spicyj/keyword-spacing

Make code spacing more consistent
This commit is contained in:
Cheng Lou
2014-04-14 11:06:11 -07:00
6 changed files with 18 additions and 18 deletions
@@ -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(
<ReactCSSTransitionGroup transitionName="yolo">
</ReactCSSTransitionGroup>,
@@ -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(
<ReactCSSTransitionGroup transitionName="yolo">
{[null]}
@@ -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
@@ -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;
}
@@ -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);
};
+7 -7
View File
@@ -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 <div>{kid}</div>;
};
@@ -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 = <span />; // Map from null to something.
var fourMapped = <div key="keyFour" />;
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 = <div key="keyFour" />;
var fiveMapped = <div />;
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 :
@@ -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 = <div key="keyOne" />;
var traverseContext = [];
var traverseFn =
jasmine.createSpy().andCallFake(function (context, kid, key, index) {
jasmine.createSpy().andCallFake(function(context, kid, key, index) {
context.push(true);
});