Adding tests for v2.2 DIAL spec.

This commit is contained in:
Kevin Morris
2018-10-24 17:07:46 -07:00
parent 9265692ad0
commit b541041ea1
8 changed files with 1457 additions and 48 deletions

View File

@@ -31,7 +31,7 @@ function consoleFormatter(options) {
switch (options.level) {
case "error": return colors.red(str);
case "warn": return colors.yellow(str);
case "debug": return colors.blue(str);
case "debug": return colors.cyan(str);
case "info":
default: return str;
}
@@ -46,12 +46,8 @@ function fileFormatter(options) {
function setLogLevel(level) {
winston.remove(winston.transports.Console);
return winston.add(winston.transports.Console, {
level: "debug",
name: "log_file",
filename: "js_tests_log.txt",
json: false,
formatter: fileFormatter,
options: { flags: "w" }
level: level,
formatter: consoleFormatter
});
}