From 0bc47e6b632e39458b6d065aba10328fce914a4f Mon Sep 17 00:00:00 2001 From: Brad Daily Date: Fri, 13 Feb 2015 16:35:46 -0600 Subject: [PATCH] Remove arrow functions --- modules/components/__tests__/Link-test.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/components/__tests__/Link-test.js b/modules/components/__tests__/Link-test.js index c7b9ec642e..40e898199c 100644 --- a/modules/components/__tests__/Link-test.js +++ b/modules/components/__tests__/Link-test.js @@ -73,23 +73,23 @@ describe('A Link', function () { expect(a.className).toEqual('dontKillMe'); } - steps.push(() => { + steps.push(function () { assertActive(); TestLocation.push('/bar'); }); - steps.push(() => { + steps.push(function () { assertInactive(); TestLocation.push('/foo'); }); - steps.push(() => { + steps.push(function () { assertActive(); done(); }); Router.run(routes, TestLocation, function (Handler) { - React.render(, div, () => { + React.render(, div, function () { steps.shift()(); }); }); @@ -132,23 +132,23 @@ describe('A Link', function () { expect(a.style.color).toEqual('white'); } - steps.push(() => { + steps.push(function () { assertActive(); TestLocation.push('/bar'); }); - steps.push(() => { + steps.push(function () { assertInactive(); TestLocation.push('/foo'); }); - steps.push(() => { + steps.push(function () { assertActive(); done(); }); Router.run(routes, TestLocation, function (Handler) { - React.render(, div, () => { + React.render(, div, function () { steps.shift()(); }); });