瀏覽代碼

Re-organize table cell properties tests.

Maciej Gołaszewski 5 年之前
父節點
當前提交
c427682e25

+ 21 - 19
packages/ckeditor5-table/tests/tablecellproperties.js

@@ -11,32 +11,34 @@ import TableEditing from '../src/tableediting';
 import TableCellProperties from '../src/tablecellproperties';
 import TableCellPropertiesEditing from '../src/tablecellproperties/tablecellpropertiesediting';
 
-describe( 'TableCellProperties', () => {
+describe( 'table cell properties', () => {
 	let editor, editorElement;
 
-	beforeEach( async () => {
-		editorElement = global.document.createElement( 'div' );
-		global.document.body.appendChild( editorElement );
+	describe( 'TableCellProperties', () => {
+		beforeEach( async () => {
+			editorElement = global.document.createElement( 'div' );
+			global.document.body.appendChild( editorElement );
 
-		editor = await ClassicTestEditor.create( editorElement, {
-			plugins: [ TableCellProperties, Paragraph, TableEditing ]
+			editor = await ClassicTestEditor.create( editorElement, {
+				plugins: [ TableCellProperties, Paragraph, TableEditing ]
+			} );
 		} );
-	} );
 
-	afterEach( async () => {
-		editorElement.remove();
-		await editor.destroy();
-	} );
+		afterEach( async () => {
+			editorElement.remove();
+			await editor.destroy();
+		} );
 
-	it( 'should be loaded', () => {
-		expect( editor.plugins.get( TableCellProperties ) ).to.instanceOf( TableCellProperties );
-	} );
+		it( 'should be loaded', () => {
+			expect( editor.plugins.get( TableCellProperties ) ).to.instanceOf( TableCellProperties );
+		} );
 
-	it( 'should load TableCellPropertiesEditing plugin', () => {
-		expect( editor.plugins.get( TableCellPropertiesEditing ) ).to.instanceOf( TableCellPropertiesEditing );
-	} );
+		it( 'should load TableCellPropertiesEditing plugin', () => {
+			expect( editor.plugins.get( TableCellPropertiesEditing ) ).to.instanceOf( TableCellPropertiesEditing );
+		} );
 
-	it( 'should have pluginName', () => {
-		expect( TableCellProperties.pluginName ).to.equal( 'TableCellProperties' );
+		it( 'should have pluginName', () => {
+			expect( TableCellProperties.pluginName ).to.equal( 'TableCellProperties' );
+		} );
 	} );
 } );

+ 1 - 1
packages/ckeditor5-table/tests/tablecellproperties/tablecellpropertiesediting.js

@@ -23,7 +23,7 @@ import { setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-util
 import { assertEqualMarkup } from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
 import { assertTableCellStyle, assertTRBLAttribute } from '../_utils/utils';
 
-describe( 'TableCellProperties', () => {
+describe( 'table cell properties', () => {
 	describe( 'TableCellPropertiesEditing', () => {
 		let editor, model;