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

Use TableEditing in SetHeaderRowCommand tests.

Maciej Gołaszewski 5 лет назад
Родитель
Сommit
565f84e63c
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      packages/ckeditor5-table/tests/commands/setheaderrowcommand.js

+ 8 - 8
packages/ckeditor5-table/tests/commands/setheaderrowcommand.js

@@ -4,28 +4,28 @@
  */
 
 import ModelTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import { getData, setData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
-import SetHeaderRowCommand from '../../src/commands/setheaderrowcommand';
-import { assertSelectedCells, defaultConversion, defaultSchema, modelTable } from '../_utils/utils';
-import TableSelection from '../../src/tableselection';
-import TableUtils from '../../src/tableutils';
 import { assertEqualMarkup } from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
 
+import TableEditing from '../../src/tableediting';
+import TableSelection from '../../src/tableselection';
+import { assertSelectedCells, modelTable } from '../_utils/utils';
+
+import SetHeaderRowCommand from '../../src/commands/setheaderrowcommand';
+
 describe( 'SetHeaderRowCommand', () => {
 	let editor, model, command;
 
 	beforeEach( () => {
 		return ModelTestEditor
 			.create( {
-				plugins: [ TableUtils, TableSelection ]
+				plugins: [ Paragraph, TableEditing, TableSelection ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;
 				model = editor.model;
 				command = new SetHeaderRowCommand( editor );
-
-				defaultSchema( model.schema );
-				defaultConversion( editor.conversion );
 			} );
 	} );