Ver código fonte

Merge pull request #67 from ckeditor/i/6002

Tests: Fixed tests leaking editor instances / DOM elements. See ckeditor/ckeditor5#6002.
Kamil Piechaczek 6 anos atrás
pai
commit
f12e1ca5cc

+ 2 - 0
packages/ckeditor5-enter/tests/enter.js

@@ -31,6 +31,8 @@ describe( 'Enter feature', () => {
 	afterEach( () => {
 		element.remove();
 		sinon.restore();
+
+		return editor.destroy();
 	} );
 
 	it( 'creates the commands', () => {

+ 2 - 0
packages/ckeditor5-enter/tests/shiftenter.js

@@ -31,6 +31,8 @@ describe( 'ShiftEnter feature', () => {
 	afterEach( () => {
 		element.remove();
 		sinon.restore();
+
+		return editor.destroy();
 	} );
 
 	it( 'creates the commands', () => {