Просмотр исходного кода

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

fix broken unit test
Brian Gough 9 лет назад
Родитель
Сommit
9dafaea64b

+ 3 - 2
services/track-changes/test/unit/coffee/UpdatesManager/UpdatesManagerTests.coffee

@@ -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