diff --git a/scripts/error-codes/__tests__/dev-expression-with-codes-test.js b/scripts/error-codes/__tests__/dev-expression-with-codes-test.js index fcc1a31513ee2..4a459a550829e 100644 --- a/scripts/error-codes/__tests__/dev-expression-with-codes-test.js +++ b/scripts/error-codes/__tests__/dev-expression-with-codes-test.js @@ -25,7 +25,7 @@ function compare(input, output) { var oldEnv; -describe('dev-expression', function() { +describe('dev-expression', () => { beforeEach(() => { oldEnv = process.env.NODE_ENV; process.env.NODE_ENV = ''; diff --git a/src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js b/src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js index 2c9581994cce4..2f5c7a36c040c 100644 --- a/src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js +++ b/src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js @@ -15,16 +15,16 @@ var React; var ReactComponentWithPureRenderMixin; var ReactTestUtils; -describe('ReactComponentWithPureRenderMixin', function() { +describe('ReactComponentWithPureRenderMixin', () => { - beforeEach(function() { + beforeEach(() => { React = require('React'); ReactComponentWithPureRenderMixin = require('ReactComponentWithPureRenderMixin'); ReactTestUtils = require('ReactTestUtils'); }); - it('provides a default shouldComponentUpdate implementation', function() { + it('provides a default shouldComponentUpdate implementation', () => { var renderCalls = 0; class PlasticWrap extends React.Component { constructor(props, context) { @@ -97,7 +97,7 @@ describe('ReactComponentWithPureRenderMixin', function() { expect(renderCalls).toBe(4); }); - it('does not do a deep comparison', function() { + it('does not do a deep comparison', () => { function getInitialState() { return { foo: [1, 2, 3], diff --git a/src/addons/__tests__/ReactFragment-test.js b/src/addons/__tests__/ReactFragment-test.js index 2ca0302c22332..0f278686a3005 100644 --- a/src/addons/__tests__/ReactFragment-test.js +++ b/src/addons/__tests__/ReactFragment-test.js @@ -15,15 +15,15 @@ var React; var ReactDOM; var ReactFragment; -describe('ReactFragment', function() { +describe('ReactFragment', () => { - beforeEach(function() { + beforeEach(() => { React = require('React'); ReactDOM = require('ReactDOM'); ReactFragment = require('ReactFragment'); }); - it('should throw if a plain object is used as a child', function() { + it('should throw if a plain object is used as a child', () => { var children = { x: , y: , @@ -39,7 +39,7 @@ describe('ReactFragment', function() { ); }); - it('should throw if a plain object even if it is in an owner', function() { + it('should throw if a plain object even if it is in an owner', () => { class Foo extends React.Component { render() { var children = { @@ -59,7 +59,7 @@ describe('ReactFragment', function() { ); }); - it('should throw if a plain object looks like an old element', function() { + it('should throw if a plain object looks like an old element', () => { var oldEl = {_isReactElement: true, type: 'span', props: {}}; var container = document.createElement('div'); expect(() => ReactDOM.render(