From cd2ed249379b501e1cbc45759a48aec6eecf1927 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 25 Aug 2017 14:47:07 +0100 Subject: [PATCH] Fix WriteStream API --- .../track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"})