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!');