Skip to content

Commit

Permalink
Remove arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleyboy committed Feb 13, 2015
1 parent 04ba639 commit 0bc47e6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/components/__tests__/Link-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(<Handler/>, div, () => {
React.render(<Handler/>, div, function () {
steps.shift()();
});
});
Expand Down Expand Up @@ -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(<Handler/>, div, () => {
React.render(<Handler/>, div, function () {
steps.shift()();
});
});
Expand Down

0 comments on commit 0bc47e6

Please sign in to comment.