Skip to content

Commit

Permalink
Don't lint auxiliary test fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Dec 28, 2013
1 parent 1ad6a9e commit aa8699d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ module.exports = function (grunt) {
all : ["test/moment/**/*.js", "test/lang/**/*.js"]
},
jshint: {
all: ["Gruntfile.js", "moment.js", "lang/**/*.js", "test/**/*.js"],
all: [
"Gruntfile.js", "moment.js", "lang/**/*.js", "test/**/*.js",
"!test/browser*.js"
],
options: {
"node" : true,
"browser" : true,
Expand Down
6 changes: 3 additions & 3 deletions test/browser-prefix.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function () {
var global = this;
var require = function() { return global.moment; };
var exports = global.NPM_TESTS = {};
var global = this,
require = function() { return global.moment; },
exports = global.NPM_TESTS = {};

0 comments on commit aa8699d

Please sign in to comment.