diff --git a/lib/logging/console.js b/lib/logging/console.js index 1971bc6..55e0107 100644 --- a/lib/logging/console.js +++ b/lib/logging/console.js @@ -7,9 +7,9 @@ var websocket = null var logger = (function () { // eslint-disable-line no-unused-vars const sep = '\n/* ### NEXT TESTCASE ############################## */' const color = { - red: '\u0033[1;31m', - green: '\u0033[1;32m', - clear: '\u0033[0m' + red: '\033[1;31m', + green: '\033[1;32m', + clear: '\033[0m' } if (utils.platform.isWindows) { color.red = '' @@ -37,7 +37,7 @@ var logger = (function () { // eslint-disable-line no-unused-vars } function testcase (msg) { - dump('/*L*/ ' + JSON.stringify(msg) + '\n') + dump('/*L*/ ' + utils.common.quote(msg) + '\n') } function dumpln (msg) { @@ -67,7 +67,7 @@ var logger = (function () { // eslint-disable-line no-unused-vars } catch (e) { dump(e.stack || e.stacktrace || '') } - error('===') + error('================') } return {