Skip to content

Commit

Permalink
Remove flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Feb 24, 2015
1 parent 0643ce3 commit 14fbde5
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions modules/__tests__/Router-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1201,24 +1201,3 @@ describe('Router.run', function () {
});
});
});

describe.skip('unmounting', function () {
afterEach(function () {
window.location.hash = '';
});

it('removes location change listeners', function (done) {
var c = 0;
var div = document.createElement('div');
Router.run(<Route handler={Foo} path="*"/>, Router.HashLocation, function (Handler) {
c++;
expect(c).toEqual(1);
React.render(<Handler/>, div, function () {
React.unmountComponentAtNode(div);
Router.HashLocation.push('/foo');
// might be flakey? I wish I knew right now a better way to do this
setTimeout(done, 0);
});
});
});
});

0 comments on commit 14fbde5

Please sign in to comment.