Parcourir la source

Changed: Aligned code to changes in ckeditor5-engine.

Szymon Cofalik il y a 8 ans
Parent
commit
5ded5ea339
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      packages/ckeditor5-link/tests/linkcommand.js

+ 3 - 1
packages/ckeditor5-link/tests/linkcommand.js

@@ -220,7 +220,9 @@ describe( 'LinkCommand', () => {
 
 				command.execute( 'url' );
 
-				expect( getData( model ) ).to.equal( '<$text bold="true">foo[<$text linkHref="url">url</$text>]bar</$text>' );
+				expect( getData( model ) ).to.equal(
+					'<$text bold="true">foo</$text>[<$text bold="true" linkHref="url">url</$text>]<$text bold="true">bar</$text>'
+				);
 			} );
 
 			it( 'should update `linkHref` attribute and select whole link when selection is inside text with `linkHref` attribute', () => {