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:
parent
004d1c134c
commit
ca991c1efd
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue