Fix callback stub being defined in wrong scope

This commit is contained in:
Alasdair Smith 2018-02-26 12:33:48 +00:00
parent 2529ed756a
commit ec7237b7e8

View file

@ -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", ->