Browse Source

Update description of indentcodeblockcommand tests.

Maciej Gołaszewski 6 years ago
parent
commit
c8374acac1
1 changed files with 5 additions and 5 deletions
  1. 5 5
      packages/ckeditor5-code-block/tests/indentcodeblockcommand.js

+ 5 - 5
packages/ckeditor5-code-block/tests/indentcodeblockcommand.js

@@ -218,19 +218,19 @@ describe( 'IndentCodeBlockCommand', () => {
 				expect( outdentCommand.isEnabled ).to.be.false;
 			} );
 
-			it( 'should be false when there is no indent sequence in the line (#1)', () => {
+			it( 'should be false when there is no indent sequence in the line (caret inside text)', () => {
 				setModelData( model, '<codeBlock language="foo">f[]oo</codeBlock>' );
 
 				expect( outdentCommand.isEnabled ).to.be.false;
 			} );
 
-			it( 'should be false when there is no indent sequence in the line (#2)', () => {
+			it( 'should be false when there is no indent sequence in the line (empty line)', () => {
 				setModelData( model, '<codeBlock language="foo">[]</codeBlock>' );
 
 				expect( outdentCommand.isEnabled ).to.be.false;
 			} );
 
-			it( 'should be false when there is no indent sequence in the line (#3)', () => {
+			it( 'should be false when there is no indent sequence in the line (caret at the end of a block)', () => {
 				setModelData( model, '<codeBlock language="foo">foo[]</codeBlock>' );
 
 				expect( outdentCommand.isEnabled ).to.be.false;
@@ -247,7 +247,7 @@ describe( 'IndentCodeBlockCommand', () => {
 				expect( outdentCommand.isEnabled ).to.be.false;
 			} );
 
-			it( 'should be false when the sequence is not in leading characters of the line (#1)', () => {
+			it( 'should be false when the sequence is not in leading characters of the line', () => {
 				setModelData( model, '<codeBlock language="foo">barfoo[]</codeBlock>' );
 
 				// <codeBlock language="foo">bar	foo[]</codeBlock>
@@ -258,7 +258,7 @@ describe( 'IndentCodeBlockCommand', () => {
 				expect( outdentCommand.isEnabled ).to.be.false;
 			} );
 
-			it( 'should be false when the sequence is not in leading characters of the line (#2)', () => {
+			it( 'should be false when the sequence is not in leading characters of the line (after other white-space characters)', () => {
 				setModelData( model, '<codeBlock language="foo">foo[]</codeBlock>' );
 
 				// <codeBlock language="foo">foo[]</codeBlock>