Fix WriteStream API

This commit is contained in:
Shane Kilkelly 2017-08-25 14:47:07 +01:00
parent 7c9ca7ccef
commit cd2ed24937

View file

@ -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"})