stub out unwanted dependency in unit tests

This commit is contained in:
Brian Gough 2017-07-18 11:30:22 +01:00
parent fd5b557dde
commit d43357e8c8

View file

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