8
0
Просмотр исходного кода

Check the rendering in "should render … after splitting link" test.

Tomek Wytrębowicz 5 лет назад
Родитель
Сommit
d03f0a8f90
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      packages/ckeditor5-link/tests/linkediting.js

+ 4 - 0
packages/ckeditor5-link/tests/linkediting.js

@@ -473,6 +473,10 @@ describe( 'LinkEditing', () => {
 			);
 
 			expect( model.document.selection ).to.have.attribute( 'linkHref' );
+			expect( getViewData( view ) ).to.equal(
+				'<p>foo <a href="url">li</a></p>' +
+				'<p><a class="ck-link_selected" href="url">{}nk</a> baz</p>'
+			);
 		} );
 
 		it( 'should remove classes when selection is moved out from the link', () => {