Skip to content

Commit

Permalink
added a flowchart cli test to reproduce #434
Browse files Browse the repository at this point in the history
  • Loading branch information
whyzdev committed Dec 19, 2016
1 parent 0ecbbf8 commit 4a5bbe1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/cli_test-samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 4 additions & 0 deletions test/fixtures/samples/flowchart_text.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
graph TD
A[label]
B[very very very long long long long-long-long text]
A--test-->B

0 comments on commit 4a5bbe1

Please sign in to comment.