Skip to content

Commit 0bc47e6

Browse files
committed
Remove arrow functions
1 parent 04ba639 commit 0bc47e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/components/__tests__/Link-test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,23 @@ describe('A Link', function () {
7373
expect(a.className).toEqual('dontKillMe');
7474
}
7575

76-
steps.push(() => {
76+
steps.push(function () {
7777
assertActive();
7878
TestLocation.push('/bar');
7979
});
8080

81-
steps.push(() => {
81+
steps.push(function () {
8282
assertInactive();
8383
TestLocation.push('/foo');
8484
});
8585

86-
steps.push(() => {
86+
steps.push(function () {
8787
assertActive();
8888
done();
8989
});
9090

9191
Router.run(routes, TestLocation, function (Handler) {
92-
React.render(<Handler/>, div, () => {
92+
React.render(<Handler/>, div, function () {
9393
steps.shift()();
9494
});
9595
});
@@ -132,23 +132,23 @@ describe('A Link', function () {
132132
expect(a.style.color).toEqual('white');
133133
}
134134

135-
steps.push(() => {
135+
steps.push(function () {
136136
assertActive();
137137
TestLocation.push('/bar');
138138
});
139139

140-
steps.push(() => {
140+
steps.push(function () {
141141
assertInactive();
142142
TestLocation.push('/foo');
143143
});
144144

145-
steps.push(() => {
145+
steps.push(function () {
146146
assertActive();
147147
done();
148148
});
149149

150150
Router.run(routes, TestLocation, function (Handler) {
151-
React.render(<Handler/>, div, () => {
151+
React.render(<Handler/>, div, function () {
152152
steps.shift()();
153153
});
154154
});

0 commit comments

Comments
 (0)