浏览代码

Destroying the editor after each test.

Szymon Kupś 7 年之前
父节点
当前提交
13f55a40f3
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 ) ) );