8
0
فهرست منبع

Codestyle - move variable retrieval close to its usage.

Maciej Gołaszewski 6 سال پیش
والد
کامیت
4371a09a79
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/ckeditor5-image/tests/image/imageediting.js

+ 1 - 1
packages/ckeditor5-image/tests/image/imageediting.js

@@ -76,8 +76,8 @@ describe( 'ImageEditing', () => {
 			const spy = sinon.spy();
 
 			editor.ui.on( 'update', spy );
-			const htmlImageElement = editor.ui.getEditableElement().querySelector( 'img' );
 
+			const htmlImageElement = editor.ui.getEditableElement().querySelector( 'img' );
 			htmlImageElement.dispatchEvent( new Event( 'load' ) );
 
 			sinon.assert.calledOnce( spy );