spec/support/helpers/streamFromString.js
function streamFromString(string) {
  const s = new stream.Readable();
  s.push(string);
  s.push(null);
  return s;
}
function streamFromString(string) {
  const s = new stream.Readable();
  s.push(string);
  s.push(null);
  return s;
}
function streamFromString ( string ) { const s = new stream . Readable ( ) ; s . push ( string ) ; s . push ( null ) ; return s ; }
helpers.streamFromString
@param {string} string
@return {stream.Readable} A Readable stream that will emit the given string
helpers . streamFromString