1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-22 16:08:14 +00:00

fix broken unit test

the behaviour of the code changed so that raw ops are always compressed
This commit is contained in:
Brian Gough 2017-08-29 15:10:58 +01:00
parent 004d1c134c
commit ca991c1efd

View file

@ -104,9 +104,10 @@ describe "UpdatesManager", ->
.calledWith(@doc_id)
.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
.should.not.be.called
.calledWith(null, @rawUpdates)
.should.equal true
it "should save the new compressed ops into a pack", ->
@PackManager.insertCompressedUpdates