Explorar el Código

Add typing test.

Maciej Gołaszewski hace 5 años
padre
commit
e415b2ec2b
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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' );