Ver Fonte

Move normalizeToArray() close to other helper functions in downcast.js.

Maciej Gołaszewski há 5 anos atrás
pai
commit
0effb45656

+ 4 - 4
packages/ckeditor5-table/src/converters/downcast.js

@@ -350,10 +350,6 @@ function renameViewTableCell( tableCell, desiredCellElementName, conversionApi )
 	conversionApi.mapper.bindElements( tableCell, renamedCell );
 }
 
-function normalizeToArray( classes ) {
-	return Array.isArray( classes ) ? classes : [ classes ];
-}
-
 // Renames a table cell element in the view according to its location in the table.
 //
 // @param {module:table/tablewalker~TableSlot} tableSlot
@@ -577,3 +573,7 @@ function getViewTable( viewFigure ) {
 function hasAnyAttribute( element ) {
 	return !![ ...element.getAttributeKeys() ].length;
 }
+
+function normalizeToArray( classes ) {
+	return Array.isArray( classes ) ? classes : [ classes ];
+}

+ 1 - 1
packages/ckeditor5-table/tests/converters/downcast.js

@@ -13,7 +13,7 @@ import { modelTable, viewTable } from '../_utils/utils';
 
 import TableEditing from '../../src/tableediting';
 
-describe.only( 'downcast converters', () => {
+describe( 'downcast converters', () => {
 	let editor, model, root, view;
 
 	testUtils.createSinonSandbox();