8
0
Просмотр исходного кода

Use TableEditing in table utils common.js tests.

Maciej Gołaszewski 5 лет назад
Родитель
Сommit
3cfde97ecf
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      packages/ckeditor5-table/tests/utils/common.js

+ 7 - 7
packages/ckeditor5-table/tests/utils/common.js

@@ -4,9 +4,12 @@
  */
 
 import ModelTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor';
-import TableUtils from '../../src/tableutils';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import { setData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
-import { defaultConversion, defaultSchema, modelTable } from '../_utils/utils';
+
+import TableEditing from '../../src/tableediting';
+import { modelTable } from '../_utils/utils';
+
 import { findAncestor, isHeadingColumnCell } from '../../src/utils/common';
 
 describe( 'table utils', () => {
@@ -14,16 +17,13 @@ describe( 'table utils', () => {
 	beforeEach( () => {
 		return ModelTestEditor
 			.create( {
-				plugins: [ TableUtils ]
+				plugins: [ Paragraph, TableEditing ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;
 				model = editor.model;
 				modelRoot = model.document.getRoot();
-				tableUtils = editor.plugins.get( TableUtils );
-
-				defaultSchema( model.schema );
-				defaultConversion( editor.conversion );
+				tableUtils = editor.plugins.get( 'TableUtils' );
 			} );
 	} );