Unmount TimelinePanel when test completes

... mostly because it seems like a nice idea.
This commit is contained in:
Richard van der Hoff 2016-04-21 13:41:25 +01:00
parent 9fcf8d00b4
commit f551317b5d
2 changed files with 3 additions and 1 deletions

View file

@ -76,7 +76,8 @@ describe('TimelinePanel', function() {
afterEach(function() {
if (parentDiv) {
document.body.removeChild(parentDiv);
ReactDOM.unmountComponentAtNode(parentDiv);
parentDiv.remove();
parentDiv = null;
}
sandbox.restore();