glob-stream
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var es = require('event-stream'); | ||
@@ -35,3 +37,3 @@ var Combine = require('combine-stream'); | ||
module.exports = us = { | ||
var us = module.exports = { | ||
// creates a stream for a single glob or filter | ||
@@ -38,0 +40,0 @@ createStream: function(ourGlob, negatives, opt) { |
{ | ||
"name": "glob-stream", | ||
"description": "File system globs as a stream", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"homepage": "http://github.com/wearefractal/glob-stream", | ||
@@ -19,6 +19,7 @@ "repository": "git://github.com/wearefractal/glob-stream.git", | ||
"mocha": "*", | ||
"should": "*" | ||
"should": "*", | ||
"jshint": "*" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "mocha && jshint" | ||
}, | ||
@@ -25,0 +26,0 @@ "engines": { |
@@ -190,3 +190,25 @@ var gs = require('../'); | ||
}); | ||
it('should return a correctly ordered file name stream for two globs and custom base', function(done) { | ||
var baseDir = join(__dirname, "./fixtures"); | ||
var globArray = [ | ||
"./whatsgoingon/key/isaidhey/whatsgoingon/test.txt", | ||
"./test.coffee", | ||
"./whatsgoingon/test.js" | ||
]; | ||
var stream = gs.create(globArray, {cwd: baseDir, cwdbase: true}); | ||
var files = []; | ||
stream.on('error', done); | ||
stream.on('data', function(file) { | ||
should.exist(file); | ||
should.exist(file.base); | ||
file.base.should.equal(baseDir); | ||
}); | ||
stream.on('end', function() { | ||
done(); | ||
}); | ||
}); | ||
it('should return a input stream for multiple globs, with negation (globbing)', function(done) { | ||
@@ -193,0 +215,0 @@ var expectedPath = join(__dirname, "./fixtures/stuff/run.dmc"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17744
354
3