spec/icalendar-spec.js
function toStr(next) {
          var stream = new Writable();
          var str = "";
          stream.write = function(chunk) {
              str += (chunk);
          };
          stream.end = function() {
              next(str);
          };
          return stream;
        }
function toStr(next) {
          var stream = new Writable();
          var str = "";
          stream.write = function(chunk) {
              str += (chunk);
          };
          stream.end = function() {
              next(str);
          };
          return stream;
        }
function toStr ( next ) { var stream = new Writable ( ) ; var str = "" ; stream . write = function ( chunk ) { str += ( chunk ) ; } ; stream . end = function ( ) { next ( str ) ; } ; return stream ; }
fake Writable stream to collect the data into a string
fake Writable stream to collect the data into a string