mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Fix callback stub being defined in wrong scope
This commit is contained in:
@@ -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", ->
|
||||
|
||||
Reference in New Issue
Block a user