Merge pull request #45 from sharelatex/bg-fix-broken-unit-test

fix broken unit test
This commit is contained in:
Brian Gough 2017-08-29 15:52:46 +01:00 committed by GitHub
commit 9dafaea64b

View file

@ -104,9 +104,10 @@ describe "UpdatesManager", ->
.calledWith(@doc_id) .calledWith(@doc_id)
.should.equal true .should.equal true
it "should defer the compression of raw ops until they are written in a new pack", -> it "should compress the raw ops", ->
@UpdateCompressor.compressRawUpdates @UpdateCompressor.compressRawUpdates
.should.not.be.called .calledWith(null, @rawUpdates)
.should.equal true
it "should save the new compressed ops into a pack", -> it "should save the new compressed ops into a pack", ->
@PackManager.insertCompressedUpdates @PackManager.insertCompressedUpdates