Tests: Fixed tests leaking editor instances / DOM elements. See ckeditor/ckeditor5#6002.
@@ -31,6 +31,8 @@ describe( 'Enter feature', () => {
afterEach( () => {
element.remove();
sinon.restore();
+
+ return editor.destroy();
} );
it( 'creates the commands', () => {
@@ -31,6 +31,8 @@ describe( 'ShiftEnter feature', () => {