Explorar o código

Changed variable declaration to sinon#stub in tests.

Damian Konopka %!s(int64=7) %!d(string=hai) anos
pai
achega
77b49d94d2

+ 1 - 1
packages/ckeditor5-image/tests/imageupload/imageuploadprogress.js

@@ -266,7 +266,7 @@ describe( 'ImageUploadProgress', () => {
 	} );
 
 	it( 'should not create completeIcon element when browser is Microsoft Edge', () => {
-		env.isEdge = true;
+		testUtils.sinon.stub( env, 'isEdge' ).returns( true );
 
 		setModelData( model, '<paragraph>[]foo</paragraph>' );
 		editor.execute( 'imageUpload', { file: createNativeFileMock() } );