Skip to content

Commit

Permalink
actually lint the JS files
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored and Contra committed Jan 16, 2014
1 parent 2030310 commit 68016cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"graceful-fs": "~2.0.1"
},
"scripts": {
"test": "mocha --reporter spec && jshint",
"test": "mocha --reporter spec && jshint **/*.js",
"coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
"engines": {
Expand Down
10 changes: 6 additions & 4 deletions test/dest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ var join = require('path').join;
var rimraf = require('rimraf');
var fs = require('graceful-fs');

/* jshint expr:false */
require('mocha');
/* jshint expr:true */

describe('gulp output stream', function() {
describe('dest()', function() {
Expand Down Expand Up @@ -43,7 +45,7 @@ describe('gulp output stream', function() {
});
});
});

it('should return a output stream that does not write non-read files', function(done) {
var outpath = join(__dirname, "./out-fixtures");
rimraf(outpath, function(err){
Expand Down Expand Up @@ -99,15 +101,15 @@ describe('gulp output stream', function() {
it('should return a output stream that writes streaming files into new directories', function(done) {
testWriteDir({}, done);
});

it('should return a output stream that writes streaming files into new directories (buffer: false)', function(done) {
testWriteDir({buffer: false}, done);
});

it('should return a output stream that writes streaming files into new directories (read: false)', function(done) {
testWriteDir({read: false}, done);
});

it('should return a output stream that writes streaming files into new directories (read: false, buffer: false)', function(done) {
testWriteDir({buffer: false, read: false}, done);
});
Expand Down Expand Up @@ -136,4 +138,4 @@ describe('gulp output stream', function() {
}

});
});
});

0 comments on commit 68016cd

Please sign in to comment.