mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-24 18:34:13 +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
|
"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", ->
|
||||||
|
|
Loading…
Reference in a new issue