Unverified Commit 16412ddf authored by Kamil Piechaczek's avatar Kamil Piechaczek Committed by GitHub

Merge pull request #31 from ckeditor/i/6002

Tests: Fixed tests leaking editor instances / DOM elements. See ckeditor/ckeditor5#6002.
parents d71d23a7 767295c4
......@@ -45,6 +45,8 @@ describe( 'DecoupledEditor build', () => {
expect( newEditor.ui.view.element ).to.be.null;
expect( newEditor.ui.view.toolbar.element.parentElement ).to.be.null;
expect( newEditor.ui.view.editable.element.parentElement ).to.be.null;
return newEditor.destroy();
} );
} );
} );
......@@ -56,6 +58,8 @@ describe( 'DecoupledEditor build', () => {
return DecoupledEditor.create( editorElement )
.then( newEditor => {
expect( newEditor.ui.view.editable.element.parentElement ).to.equal( document.body );
return newEditor.destroy();
} );
} );
} );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment