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

Use TableEditing in TableWalker tests.

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

+ 5 - 6
packages/ckeditor5-table/tests/tablewalker.js

@@ -3,11 +3,13 @@
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
  */
 
 
-import { setData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 import ModelTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor';
 import ModelTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
 import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
+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 TableWalker from '../src/tablewalker';
 import TableWalker from '../src/tablewalker';
 
 
@@ -15,15 +17,12 @@ describe( 'TableWalker', () => {
 	let editor, model, doc, root;
 	let editor, model, doc, root;
 
 
 	beforeEach( () => {
 	beforeEach( () => {
-		return ModelTestEditor.create()
+		return ModelTestEditor.create( { plugins: [ Paragraph, TableEditing ] } )
 			.then( newEditor => {
 			.then( newEditor => {
 				editor = newEditor;
 				editor = newEditor;
 				model = editor.model;
 				model = editor.model;
 				doc = model.document;
 				doc = model.document;
 				root = doc.getRoot( 'main' );
 				root = doc.getRoot( 'main' );
-
-				defaultSchema( model.schema );
-				defaultConversion( editor.conversion );
 			} );
 			} );
 	} );
 	} );