diff --git a/tests/bogusbr-integration.js b/tests/bogusbr-integration.js index 6e046f4..6d30b35 100644 --- a/tests/bogusbr-integration.js +++ b/tests/bogusbr-integration.js @@ -64,7 +64,7 @@ describe( 'Typing – bogus BR integration', () => { } ); editor.model.document.once( 'change', () => { - expect( editor.getData() ).to.equal( '

 

' ); + expect( editor.getData( { trim: 'none' } ) ).to.equal( '

 

' ); done(); }, { priority: 'low' } ); @@ -82,7 +82,7 @@ describe( 'Typing – bogus BR integration', () => { } ); editor.model.document.once( 'change', () => { - expect( editor.getData() ).to.equal( '

 

' ); + expect( editor.getData( { trim: 'none' } ) ).to.equal( '

 

' ); done(); }, { priority: 'low' } ); diff --git a/tests/tickets/59.js b/tests/tickets/59.js index 9040828..8779ad1 100644 --- a/tests/tickets/59.js +++ b/tests/tickets/59.js @@ -44,7 +44,7 @@ describe( 'Bug ckeditor5-typing#59', () => { editor.execute( 'delete' ); } - expect( editor.getData() ).to.equal( '

 

' ); + expect( editor.getData( { trim: 'none' } ) ).to.equal( '

 

' ); } ); // This is something that came to my mind after I worked on ckeditor/ckeditor5-engine#659. @@ -60,6 +60,6 @@ describe( 'Bug ckeditor5-typing#59', () => { editor.execute( 'bold' ); } - expect( editor.getData() ).to.equal( '

 

' ); + expect( editor.getData( { trim: 'none' } ) ).to.equal( '

 

' ); } ); } );