node-mocks-http
Version:
Mock 'http' objects for testing Express routing functions
26 lines (20 loc) • 696 B
JavaScript
;
/*
* http://nodejs.org/api/stream.html#stream_writable_stream
*/
function WritableStream() {}
Object.defineProperty(WritableStream, 'writable', {
configurable: true,
enumerable: true,
get: function() {
return true;
}
});
// WritableStream.prototype.write = function(string, [encoding], [fd]){}
// WritableStream.prototype.write = function(buffer){}
WritableStream.prototype.end = function () {};
// WritableStream.prototype.end = function(string, encoding){}
// WritableStream.prototype.end = function(buffer){}
WritableStream.prototype.destroy = function () {};
WritableStream.prototype.destroySoon = function () {};
module.exports = WritableStream;