converted decompression to use streams rather than callbacks

This commit is contained in:
Spencer Alger
2014-09-04 16:02:02 -07:00
parent dea4a9a97c
commit a0ffe50745
3 changed files with 23 additions and 33 deletions

View File

@ -15,12 +15,11 @@ if (!Readable) {
}
function MockIncommingMessage() {
var self = this;
Readable.call(this);
Readable.call(self);
self.setEncoding = sinon.stub();
self._read = function () {};
this.setEncoding = sinon.stub();
this.headers = {};
this._read = function () {};
}
util.inherits(MockIncommingMessage, Readable);