empty_no_data.js 306 B

12345678910111213
  1. var pipeline = require('../');
  2. var concat = require('concat-stream');
  3. var test = require('tape');
  4. test('empty with no data', function (t) {
  5. t.plan(1);
  6. var stream = pipeline([]);
  7. stream.end();
  8. stream.pipe(concat(function (body) {
  9. t.deepEqual(body.toString(), '');
  10. }));
  11. });