Procházet zdrojové kódy

Remove beforeEach from global scope in PendingActions tests.

(cherry picked from commit cef8e7ecd3191f6ed59b02738f5a32ac87bb49e8)
Maciej Gołaszewski před 7 roky
rodič
revize
9508fcc1d9
1 změnil soubory, kde provedl 11 přidání a 11 odebrání
  1. 11 11
      packages/ckeditor5-core/tests/pendingactions.js

+ 11 - 11
packages/ckeditor5-core/tests/pendingactions.js

@@ -9,20 +9,20 @@ import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
 
 let editor, pendingActions;
 
-beforeEach( () => {
-	return VirtaulTestEditor.create( {
-		plugins: [ PendingActions ],
-	} ).then( newEditor => {
-		editor = newEditor;
-		pendingActions = editor.plugins.get( PendingActions );
+describe( 'PendingActions', () => {
+	beforeEach( () => {
+		return VirtaulTestEditor.create( {
+			plugins: [ PendingActions ],
+		} ).then( newEditor => {
+			editor = newEditor;
+			pendingActions = editor.plugins.get( PendingActions );
+		} );
 	} );
-} );
 
-afterEach( () => {
-	return editor.destroy();
-} );
+	afterEach( () => {
+		return editor.destroy();
+	} );
 
-describe( 'PendingActions', () => {
 	it( 'should define static pluginName property', () => {
 		expect( PendingActions ).to.have.property( 'pluginName', 'PendingActions' );
 	} );