mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-30 02:14:15 +01:00
added a flowchart cli test to reproduce #434
This commit is contained in:
@@ -87,3 +87,16 @@ test('sequence png', function(t) {
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test('flowchart svg text', function(t) {
|
||||||
|
t.plan(1);
|
||||||
|
var args = [ "--svg",
|
||||||
|
"--outputDir=" + test_dir,
|
||||||
|
"--outputSuffix=.actual",
|
||||||
|
test_dir+"flowchart_text.mmd",
|
||||||
|
]
|
||||||
|
exec_mermaid(args.join(" "),
|
||||||
|
function(error, stdout, stderr) {
|
||||||
|
t.notOk(stderr, 'no error')
|
||||||
|
t.end()
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|||||||
4
test/fixtures/samples/flowchart_text.mmd
vendored
Normal file
4
test/fixtures/samples/flowchart_text.mmd
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
graph TD
|
||||||
|
A[label]
|
||||||
|
B[very very very long long long long-long-long text]
|
||||||
|
A--test-->B
|
||||||
Reference in New Issue
Block a user