浏览代码

Tests: Fix TableUI tests.

Maciej Gołaszewski 7 年之前
父节点
当前提交
78a37dec04
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      packages/ckeditor5-table/tests/tableui.js

+ 5 - 5
packages/ckeditor5-table/tests/tableui.js

@@ -81,14 +81,14 @@ describe( 'TableUI', () => {
 		} );
 	} );
 
-	describe( 'insertRow button', () => {
+	describe( 'insertRowBelow button', () => {
 		let insertRow;
 
 		beforeEach( () => {
-			insertRow = editor.ui.componentFactory.create( 'insertRow' );
+			insertRow = editor.ui.componentFactory.create( 'insertRowBelow' );
 		} );
 
-		it( 'should register insertRow buton', () => {
+		it( 'should register insertRowBelow button', () => {
 			expect( insertRow ).to.be.instanceOf( ButtonView );
 			expect( insertRow.isOn ).to.be.false;
 			expect( insertRow.label ).to.equal( 'Insert row' );
@@ -96,7 +96,7 @@ describe( 'TableUI', () => {
 		} );
 
 		it( 'should bind to insertRow command', () => {
-			const command = editor.commands.get( 'insertRow' );
+			const command = editor.commands.get( 'insertRowBelow' );
 
 			command.isEnabled = true;
 			expect( insertRow.isOn ).to.be.false;
@@ -112,7 +112,7 @@ describe( 'TableUI', () => {
 			insertRow.fire( 'execute' );
 
 			sinon.assert.calledOnce( executeSpy );
-			sinon.assert.calledWithExactly( executeSpy, 'insertRow' );
+			sinon.assert.calledWithExactly( executeSpy, 'insertRowBelow' );
 		} );
 	} );