Sfoglia il codice sorgente

Cleaned up the tests.

Piotrek Koszuliński 7 anni fa
parent
commit
18978b9683
1 ha cambiato i file con 1 aggiunte e 9 eliminazioni
  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>' );
 			command.execute( { value: 'heading5' } );
 
@@ -182,14 +182,6 @@ describe( 'HeadingCommand', () => {
 			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', () => {
 			let convertTo = options[ options.length - 1 ];