Explorar o código

Destroying the editor after each test.

Szymon Kupś %!s(int64=7) %!d(string=hai) anos
pai
achega
13f55a40f3
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      packages/ckeditor5-undo/tests/undoediting-integration.js

+ 4 - 0
packages/ckeditor5-undo/tests/undoediting-integration.js

@@ -48,6 +48,10 @@ describe( 'UndoEditing integration', () => {
 			} );
 	} );
 
+	afterEach( () => {
+		return editor.destroy();
+	} );
+
 	function setSelection( pathA, pathB ) {
 		model.change( writer => {
 			writer.setSelection( new Range( new Position( root, pathA ), new Position( root, pathB ) ) );