Permalink
Browse files

Merge pull request #47 from bitbonsai/master

console.log typo fixed and success message
  • Loading branch information...
Jamie Hoover ⚔
Jamie Hoover ⚔ committed Apr 4, 2013
2 parents 9c60a15 + 60551fa commit a3e9c9d4377827ed0807dcacde430a6905f8a7e7
Showing with 7 additions and 2 deletions.
  1. +7 −2 reporter.js
View
@@ -5,8 +5,8 @@ module.exports = {
reporter: function (errors, results, done) {
var
- errorString = 'Error',
- warningString = 'Warning',
+ errorString = ' Error',
+ warningString = ' Warning',
file = results[0].file,
errorLength, warningLength, globals, orphans;
@@ -77,6 +77,11 @@ module.exports = {
});
}
}
+
+ if (!errorLength && !errorLength) {
+ console.log('✓ JSHint PASSED! (no Errors or Warnings)');
+ }
+
process.stdout.write(buffer);
setTimeout('',3000);
}

0 comments on commit a3e9c9d

Please sign in to comment.