util.js 231 B

12345678910111213
  1. 'use strict'
  2. var through = require('through2')
  3. module.exports.testStream = function () {
  4. return through(function (buf, enc, cb) {
  5. var that = this
  6. setImmediate(function () {
  7. that.push(buf)
  8. cb()
  9. })
  10. })
  11. }