From 87fca7a23db092a53e3b6f48fb87be1bff424955 Mon Sep 17 00:00:00 2001 From: "Merrifield, Jay" Date: Mon, 10 Mar 2014 16:23:11 -0400 Subject: [PATCH] Allowed multiple runs of phantomjs and still know when to fail grunt --- tasks/phantomcss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/phantomcss.js b/tasks/phantomcss.js index 6a534e8..8c47afc 100644 --- a/tasks/phantomcss.js +++ b/tasks/phantomcss.js @@ -121,7 +121,7 @@ module.exports = function(grunt) { onComplete: function(allTests, noOfFails, noOfErrors) { if (allTests.length) { var noOfPasses = allTests.length - failureCount; - failureCount = noOfFails + noOfErrors; + failureCount += noOfFails + noOfErrors; if (failureCount === 0) { grunt.log.ok('All ' + noOfPasses + ' tests passed!');