Procházet zdrojové kódy

Remove redundant tests.

Maciej Gołaszewski před 6 roky
rodič
revize
0a7063d712

+ 0 - 18
packages/ckeditor5-restricted-editing/tests/restrictededitingexceptioncommand.js

@@ -126,24 +126,6 @@ describe( 'RestrictedEditingExceptionCommand', () => {
 				expect( getData( model ) ).to.equal( '<p>abcfoo[]barbaz</p>' );
 				expect( getData( model ) ).to.equal( '<p>abcfoo[]barbaz</p>' );
 			} );
 			} );
 
 
-			it( 'should add empty exception before when selection is at the beginning of restricted text', () => {
-				setData( model, '<p>[]foobar</p>' );
-
-				command.execute();
-
-				expect( model.document.selection.hasAttribute( 'restrictedEditingException' ) ).to.be.true;
-				expect( getData( model ) ).to.equal( '<p><$text restrictedEditingException="true">[]</$text>foobar</p>' );
-			} );
-
-			it( 'should add empty exception after when selection is at the end of text', () => {
-				setData( model, '<p>foobar[]</p>' );
-
-				command.execute();
-
-				expect( model.document.selection.hasAttribute( 'restrictedEditingException' ) ).to.be.true;
-				expect( getData( model ) ).to.equal( '<p>foobar<$text restrictedEditingException="true">[]</$text></p>' );
-			} );
-
 			it( 'should not remove exception when selection is at the beginning of restricted text', () => {
 			it( 'should not remove exception when selection is at the beginning of restricted text', () => {
 				setData( model, '<p>abc<$text restrictedEditingException="true">[]foobar</$text>baz</p>' );
 				setData( model, '<p>abc<$text restrictedEditingException="true">[]foobar</$text>baz</p>' );