From 906917326c19bceed336064a934f1d5e0dd6079a Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Tue, 30 Jul 2019 11:26:03 +0200 Subject: [PATCH] All tests require an image that exists. It will not cause the 404 error. --- tests/integration.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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' ); } );