diff --git a/test/cli_test-samples.js b/test/cli_test-samples.js index 0c0253fb4a..4a233320be 100644 --- a/test/cli_test-samples.js +++ b/test/cli_test-samples.js @@ -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() + }); +}) diff --git a/test/fixtures/samples/flowchart_text.mmd b/test/fixtures/samples/flowchart_text.mmd new file mode 100644 index 0000000000..0d82cee4e2 --- /dev/null +++ b/test/fixtures/samples/flowchart_text.mmd @@ -0,0 +1,4 @@ +graph TD + A[label] + B[very very very long long long long-long-long text] + A--test-->B