Răsfoiți Sursa

Cleaned up the tests.

Piotrek Koszuliński 7 ani în urmă
părinte
comite
18978b9683
1 a modificat fișierele cu 1 adăugiri și 9 ștergeri
  1. 1 9
      packages/ckeditor5-heading/tests/headingcommand.js

+ 1 - 9
packages/ckeditor5-heading/tests/headingcommand.js

@@ -174,7 +174,7 @@ describe( 'HeadingCommand', () => {
 			} );
 			} );
 		} );
 		} );
 
 
-		it( 'should do nothing on non-registered model elements', () => {
+		it( 'should do nothing with non-registered model elements', () => {
 			setData( model, '<heading1>[]</heading1>' );
 			setData( model, '<heading1>[]</heading1>' );
 			command.execute( { value: 'heading5' } );
 			command.execute( { value: 'heading5' } );
 
 
@@ -182,14 +182,6 @@ describe( 'HeadingCommand', () => {
 			expect( command.value ).to.equal( 'heading1' );
 			expect( command.value ).to.equal( 'heading1' );
 		} );
 		} );
 
 
-		it.skip( 'should do nothing when empty value is passed', () => {
-			setData( model, '<heading1>[]</heading1>' );
-			command.execute();
-
-			expect( getData( model ) ).to.equal( '<heading1>[]</heading1>' );
-			expect( command.value ).to.equal( 'heading1' );
-		} );
-
 		describe( 'collapsed selection', () => {
 		describe( 'collapsed selection', () => {
 			let convertTo = options[ options.length - 1 ];
 			let convertTo = options[ options.length - 1 ];