mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:05:50 +00:00
stub out unwanted dependency in unit tests
This commit is contained in:
parent
fd5b557dde
commit
d43357e8c8
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ describe "CompileManager", ->
|
|||
"child_process": @child_process = {}
|
||||
"./CommandRunner": @CommandRunner = {}
|
||||
"./DraftModeManager": @DraftModeManager = {}
|
||||
"./TikzManager": @TikzManager = {}
|
||||
"fs": @fs = {}
|
||||
@callback = sinon.stub()
|
||||
|
||||
|
@ -55,6 +56,7 @@ describe "CompileManager", ->
|
|||
@OutputFileFinder.findOutputFiles = sinon.stub().callsArgWith(2, null, @output_files)
|
||||
@OutputCacheManager.saveOutputFiles = sinon.stub().callsArgWith(2, null, @build_files)
|
||||
@DraftModeManager.injectDraftMode = sinon.stub().callsArg(1)
|
||||
@TikzManager.needsOutputFile = sinon.stub().returns(false)
|
||||
|
||||
describe "normally", ->
|
||||
beforeEach ->
|
||||
|
|
Loading…
Reference in a new issue