From 181a6a61ff81f492826fde990976196ef837cc0d Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 13 Apr 2016 11:16:38 +0100 Subject: [PATCH] tests: Don't add the div to the DOM --- test/app-tests/joining.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/app-tests/joining.js b/test/app-tests/joining.js index d25c3590..0f6cf91b 100644 --- a/test/app-tests/joining.js +++ b/test/app-tests/joining.js @@ -53,13 +53,16 @@ describe('joining a room', function () { httpBackend = new MockHttpBackend(); jssdk.request(httpBackend.requestFn); parentDiv = document.createElement('div'); - document.body.appendChild(parentDiv); + + // uncomment this to actually add the div to the UI, to help with + // debugging (but slow things down) + // document.body.appendChild(parentDiv); }); afterEach(function() { if (parentDiv) { ReactDOM.unmountComponentAtNode(parentDiv); - document.body.removeChild(parentDiv); + parentDiv.remove(); parentDiv = null; } httpBackend.verifyNoOutstandingRequests();