Kaynağa Gözat

Add typing test.

Maciej Gołaszewski 5 yıl önce
ebeveyn
işleme
e415b2ec2b
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8 0
      packages/ckeditor5-link/tests/autolink.js

+ 8 - 0
packages/ckeditor5-link/tests/autolink.js

@@ -35,6 +35,14 @@ describe( 'AutoLink', () => {
 			setData( model, '<paragraph>[]</paragraph>' );
 		} );
 
+		it( 'does nothing on typing normal text', () => {
+			simulateTyping( 'Cupcake ipsum dolor. Sit amet caramels. Pie jelly-o lemon drops fruitcake.' );
+
+			expect( getData( model ) ).to.equal(
+				'<paragraph>Cupcake ipsum dolor. Sit amet caramels. Pie jelly-o lemon drops fruitcake.[]</paragraph>'
+			);
+		} );
+
 		it( 'does not add linkHref attribute to a text link while typing', () => {
 			simulateTyping( 'https://www.cksource.com' );