mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 03:10:46 +00:00
Fix WriteStream API
This commit is contained in:
parent
7c9ca7ccef
commit
cd2ed24937
1 changed files with 2 additions and 1 deletions
|
@ -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"})
|
||||
|
||||
|
|
Loading…
Reference in a new issue