Przeglądaj źródła

Tests: Corrected unit test selection.

Marek Lewandowski 5 lat temu
rodzic
commit
b6b3270e68

+ 7 - 0
packages/ckeditor5-table/tests/commands/removerowcommand.js

@@ -95,6 +95,13 @@ describe( 'RemoveRowCommand', () => {
 				[ '20', '21' ]
 			] ) );
 
+			const tableSelection = editor.plugins.get( TableSelection );
+			const modelRoot = model.document.getRoot();
+			tableSelection._setCellSelection(
+				modelRoot.getNodeByPath( [ 0, 0, 0 ] ),
+				modelRoot.getNodeByPath( [ 0, 2, 0 ] )
+			);
+
 			expect( command.isEnabled ).to.be.false;
 		} );
 	} );