simple-color-log
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -22,7 +22,5 @@ var colors = require('colors'); | ||
var ret = {}; | ||
log.set | ||
for (var method in methods) { | ||
ret[method] = (function(method) { | ||
log[method] = (function(method) { | ||
return function () { | ||
@@ -53,2 +51,2 @@ var d = new Date(); | ||
} | ||
module.exports = ret; | ||
module.exports = log; |
{ | ||
"name": "simple-color-log", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "This is a simple logging function, with colors and timestamps", | ||
@@ -29,4 +29,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"sinon": "^1.17.6" | ||
"mocha": "^3.2.0", | ||
"sinon": "^1.17.7" | ||
} | ||
} |
@@ -6,3 +6,3 @@ var sinon = require ('sinon'); | ||
describe ("All methods", function () { | ||
it ("Provides all needed methods", function () { | ||
it ("Provides all logging methods", function () { | ||
assert.equal (typeof log.debug, "function"); | ||
@@ -12,3 +12,6 @@ assert.equal (typeof log.info, "function"); | ||
assert.equal (typeof log.none, "function"); | ||
}) | ||
}); | ||
it ("Also provides setLogLevel method", function () { | ||
assert.equal(typeof(log.setLogLevel), 'function'); | ||
}); | ||
}) |
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
3910
63
2