Преглед изворни кода

Fix callback stub being defined in wrong scope

Alasdair Smith пре 8 година
родитељ
комит
ec7237b7e8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      services/web/test/unit/coffee/Uploads/ArchiveManagerTests.coffee

+ 1 - 1
services/web/test/unit/coffee/Uploads/ArchiveManagerTests.coffee

@@ -26,12 +26,12 @@ describe "ArchiveManager", ->
 			"metrics-sharelatex": @metrics
 			"fs": @fs = {}
 			"fs-extra": @fse = {}
+		@callback = sinon.stub()
 	
 	describe "extractZipArchive", ->
 		beforeEach ->
 			@source = "/path/to/zip/source.zip"
 			@destination = "/path/to/zip/destination"
-			@callback = sinon.stub()
 			@ArchiveManager._isZipTooLarge = sinon.stub().callsArgWith(1, null, false)
 
 		describe "successfully", ->