浏览代码

All tests require an image that exists. It will not cause the 404 error.

Kamil Piechaczek 6 年之前
父节点
当前提交
9cfaecb11d
共有 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>'
 			);
 		} );