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

Fix editor destroy in integration tests.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
b042d716c2
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      packages/ckeditor5-paste-from-office/tests/_utils/utils.js

+ 4 - 3
packages/ckeditor5-paste-from-office/tests/_utils/utils.js

@@ -221,9 +221,10 @@ function generateIntegrationTests( title, fixtures, editorConfig, skip ) {
 		} );
 
 		after( () => {
-			editor.destroy();
-
-			element.remove();
+			return editor.destroy()
+				.then( () => {
+					element.remove();
+				} );
 		} );
 
 		for ( const name of Object.keys( fixtures.input ) ) {