Comparing version 0.3.2 to 0.3.3
@@ -11,2 +11,4 @@ 'use strict'; | ||
function noop () {} | ||
// 511 = 0777 | ||
@@ -59,5 +61,6 @@ var processMode = 511 & (~process.umask()); | ||
return through2.obj(saveFile); | ||
return through2.obj(saveFile) | ||
.on('data', noop); | ||
} | ||
module.exports = dest; |
{ | ||
"name": "vinyl-fs", | ||
"description": "Vinyl adapter for the file system", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"homepage": "http://github.com/wearefractal/vinyl-fs", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/wearefractal/vinyl-fs.git", |
@@ -364,4 +364,23 @@ var vfs = require('../'); | ||
stream1.end(); | ||
}) | ||
}); | ||
['end', 'finish'].forEach(function(eventName) { | ||
it('should emit ' + eventName + ' event', function(done) { | ||
var srcPath = path.join(__dirname, './fixtures/test.coffee'); | ||
var stream = vfs.dest('./out-fixtures/', {cwd: __dirname}); | ||
stream.on(eventName, function() { | ||
done(); | ||
}); | ||
var file = new File({ | ||
path: srcPath, | ||
cwd: __dirname, | ||
contents: new Buffer("1234567890") | ||
}); | ||
stream.write(file); | ||
stream.end(); | ||
}); | ||
}); | ||
}); |
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
33662
750