|
@@ -40,11 +40,17 @@ describe( 'StrikethroughEditing', () => {
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
it( 'should be marked with a formatting property', () => {
|
|
it( 'should be marked with a formatting property', () => {
|
|
|
- expect( model.schema.getAttributeProperties( 'strikethrough' ) ).to.deep.equal( {
|
|
|
|
|
|
|
+ expect( model.schema.getAttributeProperties( 'strikethrough' ) ).to.include( {
|
|
|
isFormatting: true
|
|
isFormatting: true
|
|
|
} );
|
|
} );
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
|
|
+ it( 'its attribute is marked with a copOnEnter property', () => {
|
|
|
|
|
+ expect( model.schema.getAttributeProperties( 'strikethrough' ) ).to.include( {
|
|
|
|
|
+ copyOnEnter: true
|
|
|
|
|
+ } );
|
|
|
|
|
+ } );
|
|
|
|
|
+
|
|
|
describe( 'command', () => {
|
|
describe( 'command', () => {
|
|
|
it( 'should register strikethrough command', () => {
|
|
it( 'should register strikethrough command', () => {
|
|
|
const command = editor.commands.get( 'strikethrough' );
|
|
const command = editor.commands.get( 'strikethrough' );
|