fix exception for empty content in TikzManager

This commit is contained in:
Brian Gough
2017-07-18 11:29:59 +01:00
parent ea34a1a89d
commit 472531f617
2 changed files with 8 additions and 2 deletions

View File

@@ -30,6 +30,12 @@ describe 'TikzManager', ->
{ path: 'output.tex' }
]).should.equal false
it "should return false if the file has no content", ->
@TikzManager.needsOutputFile("main.tex", [
{ path: 'foo.tex' },
{ path: 'main.tex' }
]).should.equal false
describe "injectOutputFile", ->
beforeEach ->
@rootDir = "/mock"