Skip to content

Commit 5875831

Browse files
committed
Fix failing tests
1 parent b237238 commit 5875831

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/__tests__/Router-test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,13 +1122,18 @@ describe('Router.run', function () {
11221122
}
11231123
};
11241124

1125+
var isDone = false;
1126+
11251127
Router.create({
11261128
routes: routes,
11271129
location: location,
11281130
scrollBehavior: MockScrollBehavior
11291131
}).run(function (Handler) {
11301132
React.render(<Handler/>, div, function () {
1131-
done();
1133+
if (!isDone) {
1134+
isDone = true;
1135+
done();
1136+
}
11321137
});
11331138
});
11341139
});

0 commit comments

Comments
 (0)