Explorar o código

Fix callback stub being defined in wrong scope

Alasdair Smith %!s(int64=8) %!d(string=hai) anos
pai
achega
ec7237b7e8

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

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