diff --git a/services/track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee b/services/track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee index 2dc289d89a..3424418935 100644 --- a/services/track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee +++ b/services/track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee @@ -39,7 +39,8 @@ describe "MongoAWS", -> beforeEach (done) -> @awssdk.config = { update: sinon.stub() } @awssdk.S3 = sinon.stub() - @S3S.WriteStream = MemoryStream.createWriteStream + @S3S.WriteStream = () -> + MemoryStream.createWriteStream() @db.docHistory = {} @db.docHistory.findOne = sinon.stub().callsArgWith(1, null, {"pack":"hello"})