mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-24 18:14:10 +00:00
Fix callback stub being defined in wrong scope
This commit is contained in:
parent
2529ed756a
commit
ec7237b7e8
1 changed files with 1 additions and 1 deletions
|
@ -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", ->
|
||||
|
|
Loading…
Reference in a new issue