We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0643ce3 commit 14fbde5Copy full SHA for 14fbde5
modules/__tests__/Router-test.js
@@ -1201,24 +1201,3 @@ describe('Router.run', function () {
1201
});
1202
1203
1204
-
1205
-describe.skip('unmounting', function () {
1206
- afterEach(function () {
1207
- window.location.hash = '';
1208
- });
1209
1210
- it('removes location change listeners', function (done) {
1211
- var c = 0;
1212
- var div = document.createElement('div');
1213
- Router.run(<Route handler={Foo} path="*"/>, Router.HashLocation, function (Handler) {
1214
- c++;
1215
- expect(c).toEqual(1);
1216
- React.render(<Handler/>, div, function () {
1217
- React.unmountComponentAtNode(div);
1218
- Router.HashLocation.push('/foo');
1219
- // might be flakey? I wish I knew right now a better way to do this
1220
- setTimeout(done, 0);
1221
1222
1223
1224
-});
0 commit comments