Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ 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>,
container
);
});

it('should work with a null child', function () {
it('should work with a null child', function() {
React.renderComponent(
<ReactCSSTransitionGroup transitionName="yolo">
{[null]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/browser/eventPlugins/AnalyticsEventPluginFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/__tests__/LegacyImmutableObject-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down
14 changes: 7 additions & 7 deletions src/utils/__tests__/ReactChildren-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand All @@ -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;
});

Expand All @@ -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;
});

Expand All @@ -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>;
};

Expand All @@ -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;
};
Expand Down Expand Up @@ -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 :
Expand Down Expand Up @@ -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 :
Expand Down
12 changes: 6 additions & 6 deletions src/utils/__tests__/traverseAllChildren-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand All @@ -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);
});

Expand All @@ -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);
});

Expand All @@ -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);
});

Expand Down Expand Up @@ -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);
});

Expand Down Expand Up @@ -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);
});

Expand Down