Skip to content

Commit

Permalink
Merge pull request gulpjs#1035 from SimenB/test-jshintrc
Browse files Browse the repository at this point in the history
Run JSHint on tests
  • Loading branch information
contra committed May 4, 2015
2 parents 2bbfa7c + f4ec873 commit 50f8928
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
"strict": true,
"undef": true,
"unused": true,
"node": true,
"mocha": true
}
"node": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"scripts": {
"prepublish": "marked-man --name gulp docs/CLI.md > gulp.1",
"lint": "jshint lib bin index.js --reporter node_modules/jshint-stylish/stylish.js --exclude node_modules && jscs lib bin test index.js",
"lint": "jshint lib bin test index.js --reporter node_modules/jshint-stylish/stylish.js --exclude node_modules && jscs lib bin test index.js",
"test": "npm run-script lint && mocha --reporter spec",
"coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
Expand Down
5 changes: 5 additions & 0 deletions test/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "../.jshintrc",
"maxlen": null,
"mocha": true
}
4 changes: 2 additions & 2 deletions test/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ describe('gulp', function() {
var writeTimeout = 125; // Wait for it to get to the filesystem
var writeFileWait = function(name, content, cb) {
if (!cb) {
cb = function() {}
};
cb = function() {};
}
setTimeout(function() {
fs.writeFile(name, content, cb);
}, writeTimeout);
Expand Down

0 comments on commit 50f8928

Please sign in to comment.