diff --git a/tests/paragraph-intergration.js b/tests/paragraph-intergration.js index e98ace0..7d1397e 100644 --- a/tests/paragraph-intergration.js +++ b/tests/paragraph-intergration.js @@ -148,7 +148,7 @@ describe( 'Paragraph feature – integration', () => { const doc = editor.model.document; const root = doc.getRoot(); - expect( editor.getData() ).to.equal( '
' ); + expect( editor.getData( { trim: 'none' } ) ).to.equal( '
' ); expect( editor.commands.get( 'undo' ).isEnabled ).to.be.false; editor.setData( '
Foobar.
' ); @@ -157,19 +157,19 @@ describe( 'Paragraph feature – integration', () => { writer.remove( root.getChild( 0 ) ); } ); - expect( editor.getData() ).to.equal( '' ); + expect( editor.getData( { trim: 'none' } ) ).to.equal( '
' ); editor.execute( 'undo' ); - expect( editor.getData() ).to.equal( '
Foobar.
' ); + expect( editor.getData( { trim: 'none' } ) ).to.equal( 'Foobar.
' ); editor.execute( 'redo' ); - expect( editor.getData() ).to.equal( '' ); + expect( editor.getData( { trim: 'none' } ) ).to.equal( '
' ); editor.execute( 'undo' ); - expect( editor.getData() ).to.equal( '
Foobar.
' ); + expect( editor.getData( { trim: 'none' } ) ).to.equal( 'Foobar.
' ); } ); } ); @@ -193,18 +193,18 @@ describe( 'Paragraph feature – integration', () => { writer.remove( otherRoot.getChild( 0 ) ); } ); - expect( editor.data.get( 'main' ) ).to.equal( '' ); - expect( editor.data.get( 'otherRoot' ) ).to.equal( '
' ); + expect( editor.data.get( { rootName: 'main', trim: 'none' } ) ).to.equal( '
' ); + expect( editor.data.get( { rootName: 'otherRoot', trim: 'none' } ) ).to.equal( '
' ); editor.execute( 'undo' ); - expect( editor.data.get( 'main' ) ).to.equal( '
' ); - expect( editor.data.get( 'otherRoot' ) ).to.equal( '
Foobar.
' ); + expect( editor.data.get( { rootName: 'main', trim: 'none' } ) ).to.equal( '' ); + expect( editor.data.get( { rootName: 'otherRoot', trim: 'none' } ) ).to.equal( '
Foobar.
' ); editor.execute( 'undo' ); - expect( editor.data.get( 'main' ) ).to.equal( 'Foobar.
' ); - expect( editor.data.get( 'otherRoot' ) ).to.equal( 'Foobar.
' ); + expect( editor.data.get( { rootName: 'main', trim: 'none' } ) ).to.equal( 'Foobar.
' ); + expect( editor.data.get( { rootName: 'otherRoot', trim: 'none' } ) ).to.equal( 'Foobar.
' ); } ); } ); } );