瀏覽代碼

Use TableEditing in SetHeaderColumnCommand tests.

Maciej Gołaszewski 5 年之前
父節點
當前提交
f426c00459
共有 1 個文件被更改,包括 7 次插入8 次删除
  1. 7 8
      packages/ckeditor5-table/tests/commands/setheadercolumncommand.js

+ 7 - 8
packages/ckeditor5-table/tests/commands/setheadercolumncommand.js

@@ -4,13 +4,15 @@
  */
 
 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 { assertEqualMarkup } from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
 
-import SetHeaderColumnCommand from '../../src/commands/setheadercolumncommand';
-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 { assertSelectedCells, modelTable } from '../_utils/utils';
+
+import SetHeaderColumnCommand from '../../src/commands/setheadercolumncommand';
 
 describe( 'SetHeaderColumnCommand', () => {
 	let editor, model, command;
@@ -18,15 +20,12 @@ describe( 'SetHeaderColumnCommand', () => {
 	beforeEach( () => {
 		return ModelTestEditor
 			.create( {
-				plugins: [ TableUtils, TableSelection ]
+				plugins: [ Paragraph, TableEditing, TableSelection ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;
 				model = editor.model;
 				command = new SetHeaderColumnCommand( editor );
-
-				defaultSchema( model.schema );
-				defaultConversion( editor.conversion );
 			} );
 	} );