node-debug-tool
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -12,3 +12,3 @@ 'use strict'; | ||
worker2.warning('Bar'); | ||
worker2.log('Foo bar'); | ||
worker2.log({a:'b'}); | ||
@@ -15,0 +15,0 @@ setInterval(function () { |
@@ -62,3 +62,3 @@ /** | ||
if ( ! string instanceof Error) { | ||
if (string instanceof Error === false) { | ||
string = JSON.stringify(string, null, 4); | ||
@@ -65,0 +65,0 @@ } |
{ | ||
"name": "node-debug-tool", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Node debug tool", | ||
@@ -5,0 +5,0 @@ "main": "./lib/node-debug-tool.js", |
@@ -24,3 +24,3 @@ var chai = require('chai'); | ||
it("should return a colored red text string with [Error] prefix and time tick", function() { | ||
expect(mockConsoleLogAndCallDebug('error', 'foo')).to.match(/\[Worker 1\] \u001b\[31m\[Error\] foo\u001b\[0m \+\d+ms/); | ||
expect(mockConsoleLogAndCallDebug('error', 'foo')).to.match(/\[Worker 1\] \u001b\[31m\[Error\] "foo"\u001b\[0m \+\d+ms/); | ||
}); | ||
@@ -31,3 +31,3 @@ }); | ||
it("should return a colored yellow text string with [Warning] prefix and time tick", function() { | ||
expect(mockConsoleLogAndCallDebug('warning', 'foo')).to.match(/\[Worker 1\] \u001b\[33m\[Warning\] foo\u001b\[0m \+\d+ms/); | ||
expect(mockConsoleLogAndCallDebug('warning', 'foo')).to.match(/\[Worker 1\] \u001b\[33m\[Warning\] "foo"\u001b\[0m \+\d+ms/); | ||
}); | ||
@@ -38,5 +38,5 @@ }); | ||
it("should return a colored green text string with [Debug] prefix and time tick", function() { | ||
expect(mockConsoleLogAndCallDebug('log', 'foo')).to.match(/\[Worker 1\] \u001b\[32m\[Debug\] foo\u001b\[0m \+\d+ms/); | ||
expect(mockConsoleLogAndCallDebug('log', 'foo')).to.match(/\[Worker 1\] \u001b\[32m\[Debug\] "foo"\u001b\[0m \+\d+ms/); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
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
25432