mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Unmount TimelinePanel when test completes
... mostly because it seems like a nice idea.
This commit is contained in:
parent
9fcf8d00b4
commit
f551317b5d
@ -76,7 +76,8 @@ describe('TimelinePanel', function() {
|
||||
|
||||
afterEach(function() {
|
||||
if (parentDiv) {
|
||||
document.body.removeChild(parentDiv);
|
||||
ReactDOM.unmountComponentAtNode(parentDiv);
|
||||
parentDiv.remove();
|
||||
parentDiv = null;
|
||||
}
|
||||
sandbox.restore();
|
||||
|
@ -37,6 +37,7 @@ module.exports.stubClient = function() {
|
||||
getRoom: sinon.stub(),
|
||||
loginFlows: sinon.stub(),
|
||||
on: sinon.stub(),
|
||||
removeListener: sinon.stub(),
|
||||
|
||||
paginateEventTimeline: sinon.stub().returns(q()),
|
||||
sendReadReceipt: sinon.stub().returns(q()),
|
||||
|
Loading…
Reference in New Issue
Block a user