浏览代码

Revert "Remove beforeEach from global scope in PendingActions tests."

This reverts commit cef8e7ec
Maciej Gołaszewski 7 年之前
父节点
当前提交
62f1f1b858
共有 1 个文件被更改,包括 11 次插入11 次删除
  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;
 
-describe( 'PendingActions', () => {
-	beforeEach( () => {
-		return VirtaulTestEditor.create( {
-			plugins: [ PendingActions ],
-		} ).then( newEditor => {
-			editor = newEditor;
-			pendingActions = editor.plugins.get( 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' );
 	} );