Skip to content

Commit

Permalink
Add test for streaming with buffering disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Klowner authored and phated committed Dec 26, 2015
1 parent 6934485 commit 17ef52e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/dest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1347,4 +1347,14 @@ describe('dest stream', function() {
stream.end();
});

it('should successfully process unbuffered items', function(done) {
var srcPath = path.join(__dirname, './fixtures/*');
var srcStream = vfs.src(srcPath, {buffer: false});
var destStream = vfs.dest('./out-fixtures', {cwd: __dirname});

srcStream
.pipe(destStream)
.once('finish', done);
});

});

0 comments on commit 17ef52e

Please sign in to comment.