You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
389 B

var pipeline = require('../');
var concat = require('concat-stream');
var test = require('tape');
test('empty passthrough stream', function (t) {
t.plan(1);
var stream = pipeline([]);
stream.pipe(concat(function (body) {
t.deepEqual(body.toString(), 'abc');
}));
stream.write('a');
stream.write('b');
stream.write('c');
stream.end();
});