node-debug-tool
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -18,2 +18,1 @@ 'use strict'; | ||
worker1.log(new Error('abc')); |
{ | ||
"name": "node-debug-tool", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"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
24702
111