Skip to content

Commit

Permalink
Tests (clipboard): Made the expected fixture consistent with the rest…
Browse files Browse the repository at this point in the history
… of the code.
  • Loading branch information
mlewand committed Sep 9, 2020
1 parent 325d258 commit 759e5d5
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/ckeditor5-clipboard/tests/utils/plaintexttohtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 759e5d5

Please sign in to comment.