Explorar el Código

Fix editor destroy in integration tests.

Maciej Gołaszewski hace 6 años
padre
commit
b042d716c2
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  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 ) ) {