added a flowchart cli test to reproduce #434

This commit is contained in:
whyzdev 2016-12-18 23:11:27 -05:00
parent 0ecbbf8ddf
commit 4a5bbe1791
2 changed files with 17 additions and 0 deletions

View File

@ -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()
});
})

View File

@ -0,0 +1,4 @@
graph TD
A[label]
B[very very very long long long long-long-long text]
A--test-->B