浏览代码

Tests (clipboard): Made the expected fixture consistent with the rest of the code.

Marek Lewandowski 5 年之前
父节点
当前提交
759e5d5be5
共有 1 个文件被更改,包括 1 次插入11 次删除
  1. 1 11
      packages/ckeditor5-clipboard/tests/utils/plaintexttohtml.js

+ 1 - 11
packages/ckeditor5-clipboard/tests/utils/plaintexttohtml.js

@@ -27,17 +27,7 @@ describe( 'plainTextToHtml()', () => {
 	} );
 
 	it( 'turns combination of different amount of line breaks to paragraphs', () => {
-		const input = `a
-
-b
-c
-
-
-
-d
-e`;
-
-		expect( plainTextToHtml( input ) ).to.equal( '<p>a</p><p>b<br>c</p><p></p><p>d<br>e</p>' );
+		expect( plainTextToHtml( 'a\n\nb\nc\n\n\n\nd\ne' ) ).to.equal( '<p>a</p><p>b<br>c</p><p></p><p>d<br>e</p>' );
 	} );
 
 	it( 'preserves trailing spaces', () => {