Skip to content

Commit 14fbde5

Browse files
committed
Remove flaky test
1 parent 0643ce3 commit 14fbde5

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Diff for: modules/__tests__/Router-test.js

-21
Original file line numberDiff line numberDiff line change
@@ -1201,24 +1201,3 @@ describe('Router.run', function () {
12011201
});
12021202
});
12031203
});
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

Comments
 (0)