ソースを参照

Tests: Use sample file for automated tests. See ckeditor/ckeditor5-dev#139.

Maciej Gołaszewski 6 年 前
コミット
1af8e4a4aa
1 ファイル変更2 行追加2 行削除
  1. 2 2
      packages/ckeditor5-media-embed/tests/automediaembed.js

+ 2 - 2
packages/ckeditor5-media-embed/tests/automediaembed.js

@@ -330,13 +330,13 @@ describe( 'AutoMediaEmbed - integration', () => {
 
 		// #47
 		it( 'does not transform a valid URL into a media if the element cannot be placed in the current position', () => {
-			setData( editor.model, '<image src="foo.png"><caption>Foo.[]</caption></image>' );
+			setData( editor.model, '<image src="/assets/sample.png"><caption>Foo.[]</caption></image>' );
 			pasteHtml( editor, 'https://www.youtube.com/watch?v=H08tGjXNHO4' );
 
 			clock.tick( 100 );
 
 			expect( getData( editor.model ) ).to.equal(
-				'<image src="foo.png"><caption>Foo.https://www.youtube.com/watch?v=H08tGjXNHO4[]</caption></image>'
+				'<image src="/assets/sample.png"><caption>Foo.https://www.youtube.com/watch?v=H08tGjXNHO4[]</caption></image>'
 			);
 		} );