Skip to content

Commit a512e60

Browse files
committed
tests: Don't add the div to the DOM
1 parent 429d110 commit a512e60

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎test/app-tests/joining.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ describe('joining a room', function () {
5353
httpBackend = new MockHttpBackend();
5454
jssdk.request(httpBackend.requestFn);
5555
parentDiv = document.createElement('div');
56-
document.body.appendChild(parentDiv);
56+
57+
// uncomment this to actually add the div to the UI, to help with
58+
// debugging (but slow things down)
59+
// document.body.appendChild(parentDiv);
5760
});
5861

5962
afterEach(function() {
6063
if (parentDiv) {
6164
ReactDOM.unmountComponentAtNode(parentDiv);
62-
document.body.removeChild(parentDiv);
65+
parentDiv.remove();
6366
parentDiv = null;
6467
}
6568
httpBackend.verifyNoOutstandingRequests();

0 commit comments

Comments
 (0)