many tests
This commit is contained in:
18
test/mocks/writable_stream.js
Normal file
18
test/mocks/writable_stream.js
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Just a buffer really, but one that implements the Writeable class
|
||||
* @type {WritableStream}
|
||||
*/
|
||||
module.exports = MockWritableStream;
|
||||
|
||||
var Writable = require('stream').Writable;
|
||||
var util = require('util');
|
||||
|
||||
function MockWritableStream(opts) {
|
||||
Writable.call(this, opts);
|
||||
|
||||
this._write = function (chunk, encoding, cb) {
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
util.inherits(MockWritableStream, Writable);
|
||||
Reference in New Issue
Block a user