Преглед изворни кода

Fix editor destroy in integration tests.

Maciej Gołaszewski пре 6 година
родитељ
комит
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 ) ) {