Răsfoiți Sursa

Fix editor destroy in integration tests.

Maciej Gołaszewski 6 ani în urmă
părinte
comite
b042d716c2

+ 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 ) ) {