|
|
@@ -174,17 +174,9 @@ 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: 'paragraph' } );
|
|
|
-
|
|
|
- expect( getData( model ) ).to.equal( '<heading1>[]</heading1>' );
|
|
|
- expect( command.value ).to.equal( 'heading1' );
|
|
|
- } );
|
|
|
-
|
|
|
- it( 'should do nothing when empty value is passed', () => {
|
|
|
- setData( model, '<heading1>[]</heading1>' );
|
|
|
- command.execute();
|
|
|
+ command.execute( { value: 'heading5' } );
|
|
|
|
|
|
expect( getData( model ) ).to.equal( '<heading1>[]</heading1>' );
|
|
|
expect( command.value ).to.equal( 'heading1' );
|