mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
added a flowchart cli test to reproduce #434
This commit is contained in:
parent
0ecbbf8ddf
commit
4a5bbe1791
@ -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
|
Loading…
x
Reference in New Issue
Block a user