8
0
Просмотр исходного кода

Merge pull request #163 from ckeditor/i/6002

Tests: Fixed tests leaking editor instances / DOM elements. See ckeditor/ckeditor5#6002.
Kamil Piechaczek 6 лет назад
Родитель
Сommit
fc3502347d
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      packages/ckeditor5-list/tests/todolistediting.js

+ 2 - 0
packages/ckeditor5-list/tests/todolistediting.js

@@ -1185,5 +1185,7 @@ describe( 'TodoListEditing', () => {
 		expect( getModelData( model, { rootName: 'dynamicRoot' } ) ).to.equal(
 			'<listItem listIndent="0" listType="todo" todoListChecked="true">f[]oo</listItem>'
 		);
+
+		dynamicRootElement.remove();
 	} );
 } );