فهرست منبع

Fix WriteStream API

Shane Kilkelly 9 سال پیش
والد
کامیت
cd2ed24937
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      services/track-changes/test/unit/coffee/DocArchive/MongoAWS.coffee

+ 2 - 1
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"})