From ec7237b7e83ddbd3c9a30df25f94f502b5a8aaa6 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Mon, 26 Feb 2018 12:33:48 +0000 Subject: [PATCH] Fix callback stub being defined in wrong scope --- .../web/test/unit/coffee/Uploads/ArchiveManagerTests.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/test/unit/coffee/Uploads/ArchiveManagerTests.coffee b/services/web/test/unit/coffee/Uploads/ArchiveManagerTests.coffee index 61efbccce7..5cabf944b0 100644 --- a/services/web/test/unit/coffee/Uploads/ArchiveManagerTests.coffee +++ b/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", ->