mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-06 09:06:45 +02:00
fix warnings per code climate
This commit is contained in:
@@ -47,7 +47,7 @@ test('output of single png', function(t) {
|
||||
|
||||
var expected = ['test.mermaid.png']
|
||||
|
||||
opt = clone(singleFile)
|
||||
var opt = clone(singleFile)
|
||||
opt.outputDir += '_png'
|
||||
opt.png = true
|
||||
|
||||
@@ -64,7 +64,7 @@ test('output of multiple png', function(t) {
|
||||
var expected = ['test.mermaid.png', 'test2.mermaid.png',
|
||||
'gantt.mermaid.png', 'sequence.mermaid.png']
|
||||
|
||||
opt = clone(multiFile)
|
||||
var opt = clone(multiFile)
|
||||
opt.outputDir += '_png'
|
||||
opt.png = true
|
||||
|
||||
@@ -80,7 +80,7 @@ test('output of single svg', function(t) {
|
||||
|
||||
var expected = ['test.mermaid.svg']
|
||||
|
||||
opt = clone(singleFile)
|
||||
var opt = clone(singleFile)
|
||||
opt.outputDir += '_svg'
|
||||
opt.svg = true
|
||||
|
||||
@@ -97,7 +97,7 @@ test('output of multiple svg', function(t) {
|
||||
var expected = ['test.mermaid.svg', 'test2.mermaid.svg',
|
||||
'gantt.mermaid.svg', 'sequence.mermaid.svg']
|
||||
|
||||
opt = clone(multiFile)
|
||||
var opt = clone(multiFile)
|
||||
opt.outputDir += '_svg'
|
||||
opt.svg = true
|
||||
|
||||
@@ -154,7 +154,7 @@ function verifyFiles(expected, dir, t) {
|
||||
}
|
||||
, function(err) {
|
||||
t.notOk(err, 'all files passed')
|
||||
var delete_tmps = true
|
||||
var delete_tmps = false
|
||||
var _rimraf=delete_tmps ? rimraf : function(dir, f) { f(0); }
|
||||
_rimraf(dir, function(rmerr) {
|
||||
t.notOk(rmerr, 'cleaned up')
|
||||
|
Reference in New Issue
Block a user