You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Unmount TimelinePanel when test completes
... mostly because it seems like a nice idea.
This commit is contained in:
@ -76,7 +76,8 @@ describe('TimelinePanel', function() {
|
|||||||
|
|
||||||
afterEach(function() {
|
afterEach(function() {
|
||||||
if (parentDiv) {
|
if (parentDiv) {
|
||||||
document.body.removeChild(parentDiv);
|
ReactDOM.unmountComponentAtNode(parentDiv);
|
||||||
|
parentDiv.remove();
|
||||||
parentDiv = null;
|
parentDiv = null;
|
||||||
}
|
}
|
||||||
sandbox.restore();
|
sandbox.restore();
|
||||||
|
@ -37,6 +37,7 @@ module.exports.stubClient = function() {
|
|||||||
getRoom: sinon.stub(),
|
getRoom: sinon.stub(),
|
||||||
loginFlows: sinon.stub(),
|
loginFlows: sinon.stub(),
|
||||||
on: sinon.stub(),
|
on: sinon.stub(),
|
||||||
|
removeListener: sinon.stub(),
|
||||||
|
|
||||||
paginateEventTimeline: sinon.stub().returns(q()),
|
paginateEventTimeline: sinon.stub().returns(q()),
|
||||||
sendReadReceipt: sinon.stub().returns(q()),
|
sendReadReceipt: sinon.stub().returns(q()),
|
||||||
|
Reference in New Issue
Block a user