8
0
Szymon Kupś 8 лет назад
Родитель
Сommit
5d60613db7
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      packages/ckeditor5-upload/tests/ui/filedialogbuttonview.js

+ 2 - 0
packages/ckeditor5-upload/tests/ui/filedialogbuttonview.js

@@ -30,9 +30,11 @@ describe( 'FileDialogButtonView', () => {
 
 			it( 'should open file dialog on execute', () => {
 				const spy = sinon.spy( view._fileInputView, 'open' );
+				const stub = sinon.stub( view._fileInputView.element, 'click' );
 				view.buttonView.fire( 'execute' );
 
 				sinon.assert.calledOnce( spy );
+				stub.restore();
 			} );
 		} );