Better spec error output when running headless

This commit is contained in:
Corey Johnson 2012-06-01 11:16:09 -07:00
parent 37d423fb60
commit 32b3dfa0ca

View File

@ -31,7 +31,7 @@ jasmine.ConsoleReporter.prototype.reportSpecResults = function(spec) {
for (var i = 0; i < resultItems.length; i++) {
var result = resultItems[i];
if (this.logErrors && result.type == 'expect' && result.passed && !result.passed()) {
console.log("ERROR: %s", spec.getFullName())
console.log("ERROR: " + spec.getFullName())
if (result.trace.stack) {
console.log(result.trace.stack)
}