Browse Source

Moved the test to the right place.

Piotrek Koszuliński 7 years ago
parent
commit
ff62cbb325
1 changed files with 25 additions and 13 deletions
  1. 25 13
      packages/ckeditor5-table/tests/table-integration.js

+ 25 - 13
packages/ckeditor5-table/tests/table-integration.js

@@ -27,7 +27,7 @@ describe( 'Table feature – integration', () => {
 
 		beforeEach( () => {
 			return VirtualTestEditor
-				.create( { plugins: [ Paragraph, TableEditing, ListEditing, BlockQuoteEditing, Widget, Clipboard, Typing ] } )
+				.create( { plugins: [ Paragraph, TableEditing, ListEditing, BlockQuoteEditing, Widget, Clipboard ] } )
 				.then( newEditor => {
 					editor = newEditor;
 					clipboard = editor.plugins.get( 'Clipboard' );
@@ -79,18 +79,6 @@ describe( 'Table feature – integration', () => {
 				[ '<blockQuote><paragraph>bar[]</paragraph></blockQuote>' ]
 			] ) );
 		} );
-
-		it( 'merges elements without throwing errors', () => {
-			setModelData( editor.model, modelTable( [
-				[ '<blockQuote><paragraph>Foo</paragraph></blockQuote><paragraph>[]Bar</paragraph>' ]
-			] ) );
-
-			editor.execute( 'delete' );
-
-			expect( formatTable( getModelData( editor.model ) ) ).to.equal( formattedModelTable( [
-				[ '<blockQuote><paragraph>Foo[]Bar</paragraph></blockQuote>' ]
-			] ) );
-		} );
 	} );
 
 	describe( 'with undo', () => {
@@ -161,4 +149,28 @@ describe( 'Table feature – integration', () => {
 			expect( editor.data.get( 'otherRoot' ) ).to.equal( viewTable( [ [ 'foo' ] ] ) );
 		} );
 	} );
+
+	describe( 'other', () => {
+		let editor;
+
+		beforeEach( () => {
+			return VirtualTestEditor
+				.create( { plugins: [ Paragraph, TableEditing, ListEditing, BlockQuoteEditing, Widget, Typing ] } )
+				.then( newEditor => {
+					editor = newEditor;
+				} );
+		} );
+
+		it( 'merges elements without throwing errors', () => {
+			setModelData( editor.model, modelTable( [
+				[ '<blockQuote><paragraph>Foo</paragraph></blockQuote><paragraph>[]Bar</paragraph>' ]
+			] ) );
+
+			editor.execute( 'delete' );
+
+			expect( formatTable( getModelData( editor.model ) ) ).to.equal( formattedModelTable( [
+				[ '<blockQuote><paragraph>Foo[]Bar</paragraph></blockQuote>' ]
+			] ) );
+		} );
+	} );
 } );