@ckeditor/ckeditor5-dev-utils
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -47,3 +47,3 @@ /** | ||
* | ||
* @param {String} moduleVerbosity Level of the verbosity for all log methods. | ||
* @param {String} moduleVerbosity='info' Level of the verbosity for all log methods. | ||
* @returns {Object} logger | ||
@@ -54,3 +54,3 @@ * @returns {Function} logger.info | ||
*/ | ||
module.exports = ( moduleVerbosity ) => { | ||
module.exports = ( moduleVerbosity = 'info' ) => { | ||
return { | ||
@@ -57,0 +57,0 @@ /** |
{ | ||
"name": "@ckeditor/ckeditor5-dev-utils", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Utils for CKEditor 5 dev code (such as Gulp tasks).", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -220,2 +220,19 @@ /** | ||
} ); | ||
describe( 'uses default verbosity', () => { | ||
beforeEach( () => { | ||
log = logger(); | ||
} ); | ||
describe( 'loggger.info()', () => { | ||
it( 'should log a message', () => { | ||
const gutilLog = sandbox.stub( gutil, 'log' ); | ||
log.info( logMessage ); | ||
expect( gutilLog.calledOnce ).to.equal( true ); | ||
expect( gutilLog.firstCall.args[ 0 ] ).to.equal( logMessage ); | ||
} ); | ||
} ); | ||
} ); | ||
} ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77394
1798