diff --git a/tests/integration.js b/tests/integration.js index 3138a3c..4367b89 100644 --- a/tests/integration.js +++ b/tests/integration.js @@ -43,25 +43,27 @@ describe( 'Highlight', () => { describe( 'compatibility with images', () => { it( 'does work inside image caption', () => { - setModelData( model, 'foo[bar]baz' ); + setModelData( model, 'foo[bar]baz' ); editor.execute( 'highlight', { value: 'yellowMarker' } ); expect( getModelData( model ) ) - .to.equal( 'foo[<$text highlight="yellowMarker">bar]baz' ); + .to.equal( + 'foo[<$text highlight="yellowMarker">bar]baz' + ); } ); it( 'does work on selection with image', () => { setModelData( model, - 'foo[fooabcbar]bar' + 'foo[fooabcbar]bar' ); editor.execute( 'highlight', { value: 'yellowMarker' } ); expect( getModelData( model ) ).to.equal( 'foo[<$text highlight="yellowMarker">foo' + - '<$text highlight="yellowMarker">abc' + + '<$text highlight="yellowMarker">abc' + '<$text highlight="yellowMarker">bar]bar' ); } );