Explorar o código

Fixed errors/warnings.

Maciej Bukowski %!s(int64=6) %!d(string=hai) anos
pai
achega
595d21e407

+ 1 - 1
packages/ckeditor5-upload/src/filerepository.js

@@ -172,7 +172,7 @@ export default class FileRepository extends Plugin {
 			 *
 			 *
 			 * @error filerepository-no-upload-adapter
 			 * @error filerepository-no-upload-adapter
 			 */
 			 */
-			console.error( attachLinkToDocumentation(
+			console.warn( attachLinkToDocumentation(
 				'filerepository-no-upload-adapter: Upload adapter is not defined.'
 				'filerepository-no-upload-adapter: Upload adapter is not defined.'
 			) );
 			) );
 
 

+ 3 - 3
packages/ckeditor5-upload/tests/filerepository.js

@@ -169,15 +169,15 @@ describe( 'FileRepository', () => {
 
 
 	describe( 'createLoader()', () => {
 	describe( 'createLoader()', () => {
 		it( 'should return null if adapter is not present', () => {
 		it( 'should return null if adapter is not present', () => {
-			const consoleErrorStub = sinon.stub( console, 'error' );
+			const consoleWarnStub = sinon.stub( console, 'warn' );
 
 
 			fileRepository.createUploadAdapter = undefined;
 			fileRepository.createUploadAdapter = undefined;
 
 
 			expect( fileRepository.createLoader( createNativeFileMock() ) ).to.be.null;
 			expect( fileRepository.createLoader( createNativeFileMock() ) ).to.be.null;
 
 
-			sinon.assert.calledOnce( consoleErrorStub );
+			sinon.assert.calledOnce( consoleWarnStub );
 			sinon.assert.calledWithExactly(
 			sinon.assert.calledWithExactly(
-				consoleErrorStub,
+				consoleWarnStub,
 				sinon.match( 'filerepository-no-upload-adapter: Upload adapter is not defined.' )
 				sinon.match( 'filerepository-no-upload-adapter: Upload adapter is not defined.' )
 			);
 			);
 		} );
 		} );