Ver código fonte

Aligned test with engine changes.

Oskar Wróbel 8 anos atrás
pai
commit
62330dad64
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/ckeditor5-easy-image/tests/easyimage.js

+ 1 - 1
packages/ckeditor5-easy-image/tests/easyimage.js

@@ -112,7 +112,7 @@ describe( 'EasyImage', () => {
 							reject( new Error( data.title ) );
 						} );
 
-						editor.document.on( 'change', () => {
+						editor.model.document.on( 'change', () => {
 							// Check whether the image is uploaded and the image's src is replaced correctly.
 							if ( editor.getData() === '<figure class="image"><img src="http://image.mock.url/"></figure>' ) {
 								editor.destroy().then( resolve );