@storybook/node-logger
Advanced tools
Comparing version 4.0.0-rc.1 to 4.0.0-rc.2
@@ -12,13 +12,7 @@ "use strict"; | ||
var logger = { | ||
info: function info(message) { | ||
return _npmlog.default.info('', message); | ||
}, | ||
warn: function warn(message) { | ||
return _npmlog.default.warn('', message); | ||
}, | ||
error: function error(message) { | ||
return _npmlog.default.error('', message); | ||
} | ||
const logger = { | ||
info: message => _npmlog.default.info('', message), | ||
warn: message => _npmlog.default.warn('', message), | ||
error: message => _npmlog.default.error('', message) | ||
}; | ||
exports.logger = logger; |
@@ -9,11 +9,9 @@ "use strict"; | ||
jest.mock('npmlog', function () { | ||
return { | ||
info: jest.fn(), | ||
warn: jest.fn(), | ||
error: jest.fn() | ||
}; | ||
}); | ||
describe('node-logger', function () { | ||
beforeEach(function () { | ||
jest.mock('npmlog', () => ({ | ||
info: jest.fn(), | ||
warn: jest.fn(), | ||
error: jest.fn() | ||
})); | ||
describe('node-logger', () => { | ||
beforeEach(() => { | ||
_npmlog.default.info.mockReset(); | ||
@@ -25,4 +23,4 @@ | ||
}); | ||
it('should have an info method', function () { | ||
var message = 'information'; | ||
it('should have an info method', () => { | ||
const message = 'information'; | ||
@@ -33,4 +31,4 @@ _.logger.info(message); | ||
}); | ||
it('should have a warn method', function () { | ||
var message = 'warning message'; | ||
it('should have a warn method', () => { | ||
const message = 'warning message'; | ||
@@ -41,4 +39,4 @@ _.logger.warn(message); | ||
}); | ||
it('should have an error method', function () { | ||
var message = 'error message'; | ||
it('should have an error method', () => { | ||
const message = 'error message'; | ||
@@ -45,0 +43,0 @@ _.logger.error(message); |
{ | ||
"name": "@storybook/node-logger", | ||
"version": "4.0.0-rc.1", | ||
"version": "4.0.0-rc.2", | ||
"description": "", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "46d89b3e617c500235c68e6d33067c2838c55489" | ||
"gitHead": "8fb0caa37edc7034a33024e9dcfa6a416857b7bf" | ||
} |
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
4633
77