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

Restore a broken test that was commented out temporarily

Shane Kilkelly 9 лет назад
Родитель
Сommit
1cd80b9dcd

+ 4 - 5
services/track-changes/test/unit/coffee/UpdatesManager/UpdatesManagerTests.coffee

@@ -105,11 +105,10 @@ describe "UpdatesManager", ->
 						.should.equal true
 						.should.equal true
 
 
 				# FIXME: Broken test, was hidden by an api mistake
 				# FIXME: Broken test, was hidden by an api mistake
-
-				# it "should defer the compression of raw ops until they are written in a new pack", ->
-				# 	console.log @UpdateCompressor.compressRawUpdates.called
-				# 	@UpdateCompressor.compressRawUpdates
-				# 		.called.should.not.equal true
+				it "should defer the compression of raw ops until they are written in a new pack", ->
+					console.log @UpdateCompressor.compressRawUpdates.called
+					@UpdateCompressor.compressRawUpdates
+						.called.should.not.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