Skip to content

Commit 2209b53

Browse files
committed
Avoid deprecation warning
1 parent f6b4a65 commit 2209b53

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/__tests__/Router-test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,23 +1011,22 @@ describe('Router.run', function () {
10111011
});
10121012

10131013
describe('unmounting', function () {
1014-
afterEach(function() {
1014+
afterEach(function () {
10151015
window.location.hash = '';
10161016
});
10171017

10181018
it('removes location change listeners', function (done) {
10191019
var c = 0;
10201020
var div = document.createElement('div');
1021-
Router.run(<Route handler={Foo} path="*"/>, Router.HashLocation, function(Handler) {
1021+
Router.run(<Route handler={Foo} path="*"/>, Router.HashLocation, function (Handler) {
10221022
c++;
10231023
expect(c).toEqual(1);
1024-
React.renderComponent(<Handler/>, div, function() {
1024+
React.render(<Handler/>, div, function () {
10251025
React.unmountComponentAtNode(div);
10261026
Router.HashLocation.push('/foo');
10271027
// might be flakey? I wish I knew right now a better way to do this
10281028
setTimeout(done, 0);
10291029
});
10301030
});
1031-
10321031
});
10331032
});

0 commit comments

Comments
 (0)