From ca991c1efd84934a13aee73907b64458e544e3e7 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 29 Aug 2017 15:10:58 +0100 Subject: [PATCH] fix broken unit test the behaviour of the code changed so that raw ops are always compressed --- .../unit/coffee/UpdatesManager/UpdatesManagerTests.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/track-changes/test/unit/coffee/UpdatesManager/UpdatesManagerTests.coffee b/services/track-changes/test/unit/coffee/UpdatesManager/UpdatesManagerTests.coffee index 88f1c7998a..1137947870 100644 --- a/services/track-changes/test/unit/coffee/UpdatesManager/UpdatesManagerTests.coffee +++ b/services/track-changes/test/unit/coffee/UpdatesManager/UpdatesManagerTests.coffee @@ -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