jasmine-reporters
Advanced tools
Comparing version
@@ -5,3 +5,3 @@ { | ||
"description": "Reporters for the Jasmine BDD Framework", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"homepage": "https://github.com/larrymyers/jasmine-reporters", | ||
@@ -13,3 +13,2 @@ "maintainers": "Ben Loveridge <bloveridge@gmail.com>", | ||
}, | ||
"main": "./src/load_reporters.js", | ||
"dependencies": { | ||
@@ -16,0 +15,0 @@ "mkdirp": "~0.3.5" |
@@ -46,2 +46,8 @@ /* global java, __phantom_writeFile */ | ||
} | ||
function log(str) { | ||
var con = global.console || console; | ||
if (con && con.log) { | ||
con.log(str); | ||
} | ||
} | ||
@@ -156,3 +162,3 @@ | ||
} | ||
//console.log("Specs skipped but not reported (entire suite skipped)", totalSpecsDefined - totalSpecsExecuted); | ||
//log("Specs skipped but not reported (entire suite skipped)", totalSpecsDefined - totalSpecsExecuted); | ||
@@ -211,3 +217,3 @@ self.finished = true; | ||
// If made it here, no write succeeded. Let user know. | ||
console.log("Warning: writing junit report failed for '" + path + "', '" + | ||
log("Warning: writing junit report failed for '" + path + "', '" + | ||
filename + "'. Reasons:\n" + | ||
@@ -214,0 +220,0 @@ errors.join("\n") |
@@ -49,2 +49,8 @@ /* global java, __phantom_writeFile */ | ||
} | ||
function log(str) { | ||
var con = global.console || console; | ||
if (con && con.log) { | ||
con.log(str); | ||
} | ||
} | ||
@@ -154,3 +160,3 @@ | ||
self.writeFile(resultsAsXml()); | ||
//console.log("Specs skipped but not reported (entire suite skipped)", totalSpecsDefined - totalSpecsExecuted); | ||
//log("Specs skipped but not reported (entire suite skipped)", totalSpecsDefined - totalSpecsExecuted); | ||
@@ -196,3 +202,3 @@ self.finished = true; | ||
// If made it here, no write succeeded. Let user know. | ||
console.log("Warning: writing junit report failed for '" + path + "', '" + | ||
log("Warning: writing nunit report failed for '" + path + "', '" + | ||
filename + "'. Reasons:\n" + | ||
@@ -199,0 +205,0 @@ errors.join("\n") |
@@ -23,3 +23,10 @@ (function(global) { | ||
} | ||
function log(str) { | ||
var con = global.console || console; | ||
if (con && con.log) { | ||
con.log(str); | ||
} | ||
} | ||
/** | ||
@@ -120,9 +127,3 @@ * TAP (http://en.wikipedia.org/wiki/Test_Anything_Protocol) reporter. | ||
}; | ||
function log(str) { | ||
var console = global.console; | ||
if (console && console.log) { | ||
console.log(str); | ||
} | ||
} | ||
}; | ||
})(this); |
@@ -34,3 +34,10 @@ (function(global) { | ||
} | ||
function log(str) { | ||
var con = global.console || console; | ||
if (con && con.log) { | ||
con.log(str); | ||
} | ||
} | ||
/** | ||
@@ -127,8 +134,2 @@ * Basic reporter that outputs spec results for the TeamCity build system | ||
function log(str) { | ||
var console = global.console; | ||
if (console && console.log) { | ||
console.log(str); | ||
} | ||
} | ||
// shorthand for logging TeamCity messages | ||
@@ -135,0 +136,0 @@ function tclog(message, attrs) { |
@@ -22,3 +22,10 @@ (function(global) { | ||
} | ||
function log(str) { | ||
var con = global.console || console; | ||
if (con && con.log) { | ||
con.log(str); | ||
} | ||
} | ||
/** | ||
@@ -189,3 +196,3 @@ * Basic reporter that outputs spec results to the terminal. | ||
} | ||
//console.log("Specs skipped but not reported (entire suite skipped)", totalSpecsDefined - totalSpecsExecuted); | ||
//log("Specs skipped but not reported (entire suite skipped)", totalSpecsDefined - totalSpecsExecuted); | ||
@@ -199,8 +206,2 @@ self.finished = true; | ||
} | ||
function log(str) { | ||
var console = global.console; | ||
if (console && console.log) { | ||
console.log(str); | ||
} | ||
} | ||
function inColor(string, color) { | ||
@@ -207,0 +208,0 @@ var color_attributes = color && color.split("+"), |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
183254
0.08%4298
0.28%0
-100%