From e96ab59997e5814df621ff87deebda50fa5c63cd Mon Sep 17 00:00:00 2001 From: NeverI Date: Sun, 24 Feb 2013 02:05:32 +0100 Subject: [PATCH] From the end result I removed the failure spec count, because task return value also displayed that information. --- tasks/jasmine.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/jasmine.js b/tasks/jasmine.js index 04bae9f..aef4bdc 100644 --- a/tasks/jasmine.js +++ b/tasks/jasmine.js @@ -172,10 +172,8 @@ module.exports = function(grunt) { phantomjs.on('jasmine.reportRunnerResults',function(){ grunt.verbose.writeln('Runner finished'); var dur = (new Date()).getTime() - thisRun.start_time; - var failed = thisRun.executed_specs - thisRun.passed_specs; - var spec_str = thisRun.executed_specs + (thisRun.executed_specs === 1 ? " spec, " : " specs, "); - var fail_str = failed + (failed === 1 ? " failure in " : " failures in "); - grunt.log.writeln(spec_str + fail_str + (dur/1000) + "s."); + var spec_str = thisRun.executed_specs + (thisRun.executed_specs === 1 ? " spec " : " specs "); + grunt.log.writeln(spec_str + 'in ' + (dur/1000) + "s."); }); phantomjs.on('jasmine.testDone',function(totalAssertions, passedAssertions, failedAssertions, skippedAssertions){