import { Readable } from "stream" ; /**
 * A mock readable-stream, using string to read from
 */ export class SourceStream extends Readable { constructor ( private buf ) { super ( ) ; } public _read ( ) { this . push ( this . buf ) ; this . push ( null ) ; } }